score:1
Accepted answer
You can compare the plot line value to the actual axis extremes and change min and max properties if necessary. For example:
yAxis.update({
min: yAxis.min > limits.min ? limits.min : null,
max: yAxis.max < limits.max ? limits.max : null,
plotLines: [{
value: limits.max,
width: 2,
color: 'orange'
}, {
value: limits.min,
width: 2,
color: 'blue'
}]
});
Source: stackoverflow.com
Related Query
- Dynamically adjust Y axis min/max based on ajax update and data points in Highcharts
- Highstock, True way of Get count of shown points after setExtreme (Zooming) - WITHOUT counting all data with MIN and MAX
- Highcharts: Set y Axis Max and Min dynamically, and not at creation
- Highchart Axis with only min and max series value
- How to dynamically adjust dataGrouping and set variable time intervals for HighStock data (HighCharts)
- How to add multiple series dynamically and update its data dynamically
- Highchart datetime graph x-axis unable to get data on plot when min and max is on
- Highstock data not showing when setting xAxis min and max
- Highcharts chart axis exceeding set min and max values
- Highchart data based to set div width and height dynamically
- min and max axis value not respected in HighCharts chart with a logarithmic axis
- update the yAxis min value and tooltip dynamically in highcharts
- dynamically change label to show the y-axis min and max value
- high chart with large variates data and dynamically create y axis
- Dynamically added Highcharts series with min and max
- Incorrect data point value in highcharts navigator series when extending min and max date
- How to format Highcharts columnRange to get json data for temperature Min and Max
- Ajax and Highcharts - Display 'loading' until data is retrieved, then populate chart
- *Highcharts* How to get the min and max value of the zoom box
- Dynamically update pointStart and pointInterval
- Is it possible update Highchart data automatically and make animated effect?
- Angular Highcharts - How to enable noData options and update it dynamically
- Highcharts - Global configuration with common code and unique data & Headings
- Adjust Highcharts data grouping based on range selector
- Setting Highcharts Series and Category data dynamically
- Highcharts with ajax and json data what am i doing wrong?
- Displaying Points And Drilldown Data in Highmaps
- Highcharts - how to create multiple y axis and group the data series
- Make Highchart and Highstock Have a Uniform Time X-Axis for Disparate Data Points
- angularjs and highcharts, labels not shown unless I hover over the data points
More Query from same tag
- angular2-Highcharts not working in angular-cli project
- Only show integer steps on axis
- Determine trend line types available in HighStock charts
- Navigator in Highcharts
- Highstock different time value interval
- JSON data not showing in highstock candlestick chart using PHP and SQL
- Highstocks Flags (Combine the flags into single flag if the day have more than one flag)
- highcharts dynamic categories not working
- How to show an empty chart in beginning and populate values on button click
- Highcharts datetime axis overlap with a long time series
- Stop Highchart when end of the Array element reached
- json date format to Highcharts date format
- HighCharts: drawing graph paper for ECG on Android
- Determine which scatter points are within a filled area in highcharts
- Uncaught TypeError: Cannot read property 'xAxis' of undefined Highcharts
- How to modiffy Highchart size with slide effect
- Symfony webpack "Highcharts is not defined"
- Highcharts showing extra lables multiple times in x-Axis
- Highchart in new window
- Highcharts - changing x-axis labels with rangeselector
- Highcharts : synchronized charts, It's possible export download image all in one?
- The HighCharts CSV export module went missing
- Highcharts copy HTML of chart can't disable cursor change
- Highcharts - programmatically "flip" (reverse) Y Axis
- Show only two axis values in highcharts
- Highcharts data module and CSV: Displaying data points differently
- How to make a HighCharts drilldown column/bar chart that does not hide the non-drilldown categories
- Highcharts: Shared tooltip formatter this.points[i]
- Highmaps logo string rendering invalid copyright character
- How to style navigator dragging handles , Highstock