score:2
Instead of crosshairs, use plotLines - on click event add them, and on button click remove old plotLine and add new one.
See docs:
- addPlotLine: http://api.highcharts.com/highcharts#Axis.addPlotLine
- removePlotLine: http://api.highcharts.com/highcharts#Axis.removePlotLine
- plotLine options: http://api.highcharts.com/highcharts#xAxis.plotLines
- click events: http://api.highcharts.com/highcharts#plotOptions.series.point.events.click
Source: stackoverflow.com
Related Query
- Changing highcharts crosshairs position with clicking button
- I want to update my series dynamically on highcharts with a click & also bring it to the original way by clicking on an other button (#previous)
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- Highcharts - Draw Crosshairs / Tooltip on Mouse Position Instead of Snapping to Data Point
- Highcharts - Global configuration with common code and unique data & Headings
- How to export CSV and XLS with external button in Highcharts
- Highcharts changing tooltip datetime with formatter
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts bar with negative stack: how to position data labels
- Highcharts & jQuery: add a mark by clicking with Shift key pressed, then process on release
- Data changing with Highcharts point.update
- Changing the name for 'categories' of x axis while implementing crossfilter with highcharts
- Why Highcharts box only show with some position
- How to change Highcharts graph with HTML radio button input (JS/jQuery)
- Changing bar width with pointPadding in Highcharts
- Highcharts drilldown to pie chart - Clicking on axis label with multiple series causes pie charts to overlap
- Fixing dataLabel position in pie charts Highcharts even when data is changing
- Highcharts - changing x-axis labels with rangeselector
- Highcharts series visibility with csv data source
- Changing highcharts options with buttons
- Toggle Highcharts plotLine with button
- How to have multiple highcharts with different series data in vuejs without repeating code
- highcharts destroy selected group annotation with button
- Toggle button visibility on iframe fullscreen with highcharts
- Styling HighCharts reset Zoom button with Material UI button
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- Highcharts column how to move series name to the title position with bigger text size
- Highcharts cloud issue with data source when duplicating chart
- Getting numbers on Y-axis to show up as percentages with code from a Highcharts code generator tool?
- Highcharts - how do I position categories aligned with tick marks as separations between columns?
More Query from same tag
- Which highstock options can I use to remove inbetween xAxis
- Highchart drillup issue
- "adaptToUpdatedData: false" in highcharts don`t works if I put series in chart with "addSeries"
- R Highcharter Sankey nodes column property trouble
- How to have different cursor style for legends in Highcharts?
- Highcharts Synchronisation not working: point.highlight
- HighCharts for stock prediction data
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- How to truncate value in tooltip using highcharts
- How to set specific color for each data in pie chart using phplot.php
- Trying to push data to a JSON array
- How can I apply a radial gradient for 3d but ONLY for particular charts?
- Return the next line of a csv file each time a php script is called
- rCharts::rPlot on click event
- Adding space between Navigation bar and legend in pie chart(highcharts)
- How to move islands in a highmap
- HighCharts fitting long Y-axis labels
- Pass vales from Javascript back to C# function
- Highcharts - Area between two y values highlighted
- Chart not exporting to XLS File - Highcharts
- Highstock with datetime and multiple columns
- How can I unescape and remove quot; from data served by rails into javascript
- Highcharts yAxis.max manage tick intervals dynamically
- Using modified JS version in Highcharts to bring back the pre-3.0 export buttons
- Pass argument in nested event handler
- Change color code on colum, depending on data value (highchartJS)
- Matomo: report for single url
- Highcharts heatmap logarithmic colorAxis fails when 0
- Reversed series on bar chart with data loaded from table
- Highcharts - Can we have default and custom tooltip based on different chart types?