score:2
Here, I have fixed it for you. Here is a saved image:
Following changes have been done:
Added a redraw event to your exportchart
redraw: function () { $("#test_text").remove() ; draw_labels(this); }
Changed this line in
afterSetExtremes
$('[id="test_text"]').remove();
to
$("#test_text").remove() ;
Earlier one was not working as expected, so I had to change it.
score:0
Problem with disappearing text is related with id, when I removed it, label appears. But then I came across second issue, wrong y position. So i declare global variable
, then when you call your function, set position of label, and use in chart exporting this variable. As a result label is exported correct.
Source: stackoverflow.com
Related Query
- Can not export renderer text using highcharts/highstock when click range selector
- Multi-Line Title is not working when we export to PNG using CanVG - Highcharts
- HighCharts title styles i.e textDecoration property not applying when we export the chart using canvg
- Can not exporting renderer shapes added in callback function in highcharts / highstock
- xAxis.Categories does not works in highcharts when used with range selector
- Uncaught TypeError: undefined is not a function when using highcharts
- Issues using highcharts node export server from ClojureScript - "0x03 error when performing chart generation"
- Can a Highcharts range selector use non-date linear ranges?
- Highcharts - Range Selector - Date fields not visible
- How can I disable the Highstocks range selector buttons when loading data asynchronously?
- Jquery Highcharts is not loading when using with common function?
- HighCharts range area plot not working when plot is inverted
- How to specify a range of data when using HighCharts with <table>?
- Click event for bar-chart using Highcharts not working?
- Highstock How to remove the cross icon in Range selector text box in IE
- Highcharts - set xAxis range when using xAxis Categories?
- Javascript not working when using async attribute : Highcharts
- Highcharts click events not firing when displaying multiple line series
- Highcharts custom legend SVG symbol does not fade when you click to turn off series
- HTML table as data source for highstock charts using highcharts
- Highcharts charts on a page not rendering correctly when output to PDF using wkhtmltopdf
- Highstock can use {point.tt}, but Highcharts can not , why?
- Highcharts column chart returning incorrect series index on click when using shared tooltip
- Column rang chart is not getting reset when click on legends in highcharts
- Highcharts range selector buttons and input filter not working
- Angular 9 Highcharts - when using series of type pie with type gauge the innerSize of pie is not working
- Mouse wheel event, not working as expected in Firefox, when using Highcharts with PerfectScrollbar
- Highstock Range Selector Buttons to PDF Export Dropdown
- Highcharts can not update diagram using angular.js
- Set file type dynamically when click on exporting menu in highcharts using chart.exportChart function
More Query from same tag
- Highcharts Point Value Disappearing
- Highcharts use series labels as x-axis categories
- plotting dynamic array data structure with highchart
- Highchart : How to set different step on each xaxis label?
- Displaying Persian dates in highchart from its corresponding Georgian date
- Highcharts shows data but can't display chart
- Dojo + Highcharts. The X Axis is not alligned when setCategories() is executed
- Highcharts + Highmaps module not working
- Marge yAxis column's cells vertically in highcharts gantt
- HighCharts: columns not centered when multi series
- How to stop Highcharts from recalculating ticks positions when a series is toggled?
- Highcharts in django
- highcharts: disable hover on column chart when i use two chart togheder
- Highcharts variable threshold
- Adding HighCharts Data Series With Property Names
- How can I unclick an event in highcharts on the second click
- Highchart bar pagination
- highcharts, four aeraranges with linear gradients
- Why dynamically updated data in highstock seems not work properly
- Adding image in highchart
- Passing data to Horizontal Bar Highchart.js showing only one record in codeigniter
- Highcharts showing points on hovering over the line which are outside the chart area when the chart is zoomed in
- Highcharts downloading a graph with a pattern as an svg
- Too many series drawn with unused CSV data column
- HighCharts donut - how to individually adjust height of each external segment?
- Adding new data to highchart tooltip
- Highcharts fill map based on data values with React TypeScript
- How to bind data in SQL Server to Highcharts?
- How to set xAxis maxRange/minRange for each rangeSelector button separately
- Adding export-to-csv option onto Highcharts chart as a client user?