score:3
Accepted answer
There is nothing like 'Highcharts.each(xAxis.plotLinesAndBands, function(p) '. Iterate charts by loop and use 'removePlotLine(PlotLineID)' instead of 'destroy()':
for(i=0;i<Highcharts.charts.length; i++){
var chart=Highcharts.charts[i];
chart.xAxis[0].removePlotLine('myPlotLineId');
}
And set id in parenthesis:
id: 'myPlotLineId'
here is jsfiddle http://jsfiddle.net/asadsarwar89/bh4kz9rw/
Source: stackoverflow.com
Related Query
- HighChart : plot line click event for multiple chart
- programatically fire a click event for a point on highchart scatter plot
- Fire click event on a highchart column drilldown chart on clicking x axis for drill down reports
- Plot Highchart multiple series line chart using JSON data
- HighChart : plot line and plot click event
- In high chart how to add event for label click
- Showing marker for separate values only in line chart in HIghchart
- Highchart showing indicator at last point for line chart
- Use a symfony route with parameters in a click event for highchart series
- Highcharts:add click event on data label for pie chart
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- Highchart Line chart – data series with multiple axis - 2nd series placed in the middle of X axis
- When adding point on dynamically created Multiple Highchart Graphs on a single page, the plot line draws to the start point instead of last point?
- High Charts Multiple Line Chart not displaying tooltip for multiple lines
- Is is possible to change line color in highchart xy plot for specific y range only?
- Line and column combo chart with multiple columns for each category, how to position line marker for each category on a specific column?
- Highcharts pointer cursor for chart click event
- changing page output view after click event on highchart plot point
- How to display basic line graph in Highchart for multiple categories' data from csv?
- Highchart multiple level drilldown click event get drilldown series data
- disabling click event for a series highchart
- Click event on Highstock / Highchart plot
- Setting Flag on Click Event for Candlestick Chart
- HighCharts turn animation false for line chart
- Highchart Area Range chart with gradient that follows the line
- Highcharts chart click event fired on click of the reset zoom button (bug?)
- Background color for multiple Highchart panes, in Vue app
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- highcharts - chart names for multiple pie chart series in one chart
- Highcharts shared tooltip for line series and scatter plot not working
More Query from same tag
- HighCharts - Don't show line or change line style if date not reached
- ECharts how to set different symbol for different marklines in one chart
- How can I make an AJAX request to a Highcharts rendering server running on a different port in production?
- In highchart how to plot the line in 3d container
- Highcharts multiple series drilldown to multiple series
- Drawing 3D bar charts using Highcharts through JS
- Highcharts column chart color by single color but with different brightness level as per respective column value
- Show label for each bar in highcharts
- Installing Highstocks for Rails app
- Highcharts Xaxis remove old data and shift left
- linkedTo with multiple ID in highcharts
- Properly align columns in highcharts
- Set different color for each bubble in Bubble-Map
- how to center highcharts at the middle
- Highchart dynamic creation - not rendering properly
- HighCharts for stock prediction data
- How can I replace the term "Week" in highcharts Gantt Chart Timeline?
- Rotated X-Axis labels overlap the graph itself
- Highcharts showing time instead of date
- highcharts transform json data with Date.UTC
- Issue having blank graphic in Highchart script
- highlight area chart lines when crossed in highcharts
- How to show Legends for all the series data in stacked column chart Highcharts?
- Highcharts datalabel for each stacked column
- Hightcharts max 19 is rounded op to 20
- Highcharts: show stack total in shared tooltip, via footerFormat property
- highcharts - add label by custom id
- How to apply color stops in highcharter?
- How to set multiple colors in one series in highchart
- Make events run multiple times, Highcharts