score:7
worked! had to read the highcharts document... :-)
chart: {
events: {
click: function (event) {
var chart = this.xaxis[0];
chart.removeplotline('plot-line-1');
chart.addplotline({
value: event.xaxis[0].value,
color: '#ff0000',
width: 2,
id: 'plot-line-1'
});
}
}
Source: stackoverflow.com
Related Query
- How to plot line in highcharts on charts click event?
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- Highcharts how to add treemap upon click event on line chart?
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- highcharts how to catch and insert logic in click reset zoom button event
- How to pass custom data into Highcharts graph click event
- How to get the Div id of charts in highcharts on click of it in angular 6
- How to attach click event function in Highcharts
- HighChart : plot line click event for multiple chart
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- How to add series after click event in HighCharts
- How to use HighCharts to plot aggregate hourly event rates?
- Highcharts - How to plot a X axis line on my bell curve (Standard Deviation Curve)
- How do I attach a click event handler to the whole HighCharts Gauge control?
- HighCharts Keep Vertical Line on Click Event
- How can I make React Native in Android aware of a click event in a tooltip in a Highcharts chart?
- Highcharts - How can I get the nearest point on click event
- Highcharts how to align two charts yAxis on the same line
- How to add vertical (and horizontal) line in highcharts scatter plot
- Highcharts - How do I keep both line points in from splitting between the two bar charts
- How do I plot the x axis line using Highcharts when pegged at 0?
- HighCharts : How to add click event on colorAxis in heatmap
- How do I catch a click event on a polygon in HighCharts without having the tooltip popping up
- how to render multiple line charts - highcharts on same page using highcharts react wrapper - highcharts-react-offical
- Highcharts - Click event not firing outside of plot area
- How to draw a vertical line from a xAxis click event in Highcharts?
- How to use Highcharts regression plugin to plot a trend line using angular 8 wrapper
- How can I unclick an event in highcharts on the second click
- HighChart : plot line and plot click event
- Highcharts - how to align two charts on a same line
More Query from same tag
- HighCharts polygon label - zoom capable
- Highcharts setting the colour of columns in each month period
- How to render html with highcharts in ionic 2
- Highstock + Highmaps not rendering
- Solid Guage Chart with 2 data series in Highharts
- Redrawing the tooltip inside of the tooltip positioner callback
- xAxis startOnTick and endOnTick options ignored on boxplots
- Show xrange x and x2 values in chart
- highcharts donut pie - How to calculate pie size percentages after resize the chart
- Building sparse array
- Can I disable plotband's label when it exceeds plotband's border?Highstock
- How to properly set datetime as x-axis value on Highcharts(React JS)
- set all div in html without vertical scrollbar
- Highcharts Beta 3: Best Practice loading JSON data
- Exporting several HighCharts graphs to Powerpoint slides
- Trouble converting time to UTC for highstocks
- Highcharts redundant time data with multiple axes
- Wordcloud tags not appearing in a given fontSize - Highcharts
- Draw dynamic rectangle based on date co-ordinates
- Highcharts.js: Group some series but not others in bar chart
- Highchart dual layer donut slide both the inner and outer donuts together
- I'm trying to use highcharts to display a series of points not just x and y
- how to create donut chart using highcharts?
- Highcharts: Add point without connecting series
- Can't disable animation when using Highcharts in polar mode
- How to implement "zebra striping" in highcharts axes
- HighCarts Tooltip position relative to mouse
- include two series from database in a highchart chart
- Highcharts Dynamic Chart with MySQL Data doesn't reload
- call function onclick highchart