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
- HighChart with large amount of data not working
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- Highcharts adding array of variable to series
- Rails collecting and rendering JSON data in to a Highcharts graph
- Dragging line charts horizontally to show past/future data in Highcharts
- Sort descendants data in categories in highcharts
- Highcharts: how to be DRY with charts which share some configuration parts?
- Using FontAwesome icons as HighChart markers
- How to merge two Highcharts container with the same legend-item
- Highcharts problems with animation of column chart
- align text on the left and the right in Highcharts
- highcharts on IE9
- Export image with phantom - Navigator or credits cannot be changed
- Highcharts export menu does not show up fully
- How to get number of pixels between two points in Highcharts?
- highcharts datalabel text reversed
- HighCharts/HighStock memory leak with addPoints() in Chrome only
- Display series stack label on chart
- Showing HighCharts series name on x-axis and in legend
- Multiple categories for hc_yAxis
- How to change colors of a highcharter matrix/heatmap?
- Styling issues with Highcharts JS
- How to Export JavaScript Chart to Excel file (HighCharts)
- Problems implementing synchronized plotline and tooltips for highcharts
- Highcharts datalabel formatter for export server
- how to update highstock indicators on dynamically updated chart
- Snap to month in highchart stock navigator
- Highchart Change lineWidth of a Serie
- Different axis per category
- Highcharts custom pattern fill shows different stroke width