score:1
Accepted answer
I have two aproach, the first with changing inside event chart.redraw() will be called every time when chart is redrawn, for testing I added fired from a button.
redraw: function() {
let chart = this;
console.log(chart);
chart.xAxis[0].userMax = 8;
chart.xAxis[0].userMin = 2;
},
The next way is to update the axis object with a new set of userMax and userMin options.
chart.xAxis[0].update({
userMax: 8,
userMin: 2
}, true);
Live demo:
https://jsfiddle.net/BlackLabel/fcsd9hyo/
API References:
https://api.highcharts.com/highcharts/chart.events.redraw
https://api.highcharts.com/class-reference/Highcharts.Axis#update
Source: stackoverflow.com
Related Query
- Highcharts - Selection Event Modify Options
- Highcharts Selection Event
- Highcharts + set event click from options in jquery
- How to get the angular component class reference inside an emitted Highcharts selection event callback function?
- How to "Pause" Highcharts selection event
- Changing value of variable in Highcharts selection event in angular
- HighCharts zoom in selection event
- HighCharts - Selection Event keep the selection marked in graph
- Highcharts Selection Event Disable highlighting Effect
- Highcharts selection event not passing xAxis
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- How to modify highcharts legend item click event?
- Highcharts - manually trigger hover event on a point
- How do I add an event listener to a Highcharts object *AFTER* I've created it
- Highcharts / jQuery - destroy and rebuild chart with original options
- Highcharts - fire legendItemClick event
- Disable PDF and SVG download options in Highcharts
- Highcharts how to change x axis options
- Highcharts - Double click event
- Highcharts chart click event fired on click of the reset zoom button (bug?)
- 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
- Append onload or redraw event functions dynamically in Highcharts
- React plot options onclick event
- How to pass custom data into Highcharts graph click event
- how to get chart object inside a point event function in Highcharts
- Highcharts -- exporting, setting dataLabel options
- Highcharts - add additional export options without losing default ones
- How to modify Highcharts x-axis tooltip text
- Add onclick event on chart made with the highcharts library
More Query from same tag
- Highcharts xAxis with datetime not showing any chart
- Highcharts shankey diagram percentage not showing
- Columns too wide in Highcharts with lots of points
- Highstock with datepicker and a non-default date
- Highcharts add export as csv
- Build failing after angular upgrade from 4.4 to 8
- Group of ungrouped column chart
- Can I set a minimum positive and a minimum negative axis value in Highcharts
- Highchart Min Max for y-axis per series
- How to draw an outer border for a donut chart - Highcharts
- Highcharts - Tree map rectangles are showing the next level
- Is it possible use size (z) argument with RHighcharter and a categorical Y-axis?
- Is it possible to export HTML along with SVG markup to the Highcharts Export Server (http://export.highcharts.com/)
- Highcharts area graph with fillColor changing color depending on the zone color?
- How we can show scrollbar if max index exceeded in highcharts timeline?
- Highcharts 'Reset Zoom' after calling setExtremes
- Highcharts - Solid Gauge - Inconsistent Styling and Improper Values
- Removing lines between two values in Highchart's line chart
- Sankey Diagram unable to deliver using the json output
- Object structure changed internally
- highcharts-ng model data not working
- Highcharts display date as series label from JSON data?
- datepicker - Highcharts Gauge Json
- Ionic3 Highcharts-More import Error --JsAllow Not Set
- Highcharts scatter set markers
- Highcharts update grouped data point color
- Change data periodicity in Highcharts time series?
- Spline chart gradient fill
- Highcharts column click position
- Highstock Options in Yii Booster Highcharts