score:1
Thank you for sharing it. It seems like a bug to me, I reported it on the Highcharts Github issue channel where you can follow this thread: https://github.com/highcharts/highcharts/issues/14189
As I understood you would like to create a custom legend and I think that it could be achieved in a different way (to avoid the chart.data
update). My idea is to loop through the series and hide or show them.
Here is a simple demo: https://jsfiddle.net/BlackLabel/emyq7j94/ - you can test it by clicking the ab80
, 60 bis 79
and alle
.
Each button triggers a similar functionality (which you can save as an outstanding function):
chart.series.forEach((s, i) => {
if (i !== 5 && i !== 12) {
s.hide()
} else {
s.show()
s.update({
visible: true
}, false)
}
})
Source: stackoverflow.com
Related Query
- Highcharts chart update function causes missing data point
- how to get chart object inside a point event function in Highcharts
- Highcharts Scatter Chart Data Point Hover
- HighCharts missing data points on line chart
- Highcharts area chart hide graphs with one data point
- Highcharts - adding a question mark where data is missing in a bar chart
- Highcharts display label for pie chart using html table as data source
- HighCharts column chart populated with series data from a function
- Update HighCharts chart when AJAX Updates my data on my page
- HighCharts : Update a point when grouping data
- How to update chart only on unique data in HighCharts
- Highcharts Line Chart - Hyperlink on a data point
- How to pass JSON data to update Highcharts Pie chart
- Highcharts Update Grouped Series Data Point Colors
- how do you call function to pull data automaticall to chart in highcharts
- Update datalabel on click of a point on the series of a highcharts timeline chart
- Highcharts AreaRange Chart issues with xAxis and last data point label
- Highcharts cloud issue with data source when duplicating chart
- Highcharts update grouped data point color
- How do I stop Highcharts creating a new gridline at the extremities of the chart unless a data point exceeds the min/max gridline?
- How to update candlestick Highstock chart with new data point
- Highcharts datalables enabled for one series and one point on the chart via chart function
- Highcharts displays series names but missing data points from json source
- How to make highcharts default to 0 for missing data
- Reload chart data via JSON with Highcharts
- Highcharts => Getting the id of a point when clicking on a line chart
- How do I dynamically change a data point in Highcharts using JavaScript
- Highcharts saying undefined is not a function when trying to add a new chart
- Highcharts scatter chart with a name per point
- Highcharts Pie Chart ignores percentageDecimals tooltip setting and has floating point inaccuracy issue
More Query from same tag
- HighChart not working when called by ajax
- How to save the data as a string from a csv file in javascript?
- Increase width of Xaxis title in bar chart in highcharts
- change datalabels color in a HighCharts chart when hovering without updating the series
- Highcharts chart not respecting container's width
- How to update highstock with navigator disabled?
- Issue in multiple exporting for HighChart with scrollbar
- How to correctly create function for formatter on PHP in Yii2 Highcharts extension
- Highcharts scatter chart legend toggle running slow
- Highcharts MTD (Month to Date) and QTD (Quater to Date) implementation
- In area chart how to use gradient colour
- Show how many elements every X time with HighCharts
- HighCharts errorbar not displaying correctly
- Angular 2 Highcharts font awesome for custom buttons
- highstock axis update from button
- Highcharts not displaying a line, but Jquery seems to be correct
- Printchart title in highcharts when clicking print button when chart title is null
- How to customize "Download CSV" functionality in HighCharts?
- Highcharts Multiseries Gauge with DataLabels at Ends
- HighCharts: Logarithmic scale
- HighChart: Donut Pie with URL
- Export Jquery chart to csv,pdf and excel
- How to use candlestick highchart in Angular2?
- When using Highcharts, how do you get the point name from a data point series?
- How remove zero values in a heatmap?
- javascript charting framework to plot two charts together
- Moving dataLabels for a Highcharts timeline all to one side
- Highcharts data label on last point of series not displayed
- Conditional Symbols in Highcharts
- Renaming items in export menu in highcharts