score:1
Accepted answer
You can use setExtremes
method in load
event:
chart: {
events: {
load: function() {
const xAxis = this.xAxis[0];
xAxis.setExtremes(xAxis.dataMin, xAxis.dataMin + xAxis.max - xAxis.min);
}
}
}
Live demo: https://jsfiddle.net/BlackLabel/8tk52zdw/
API Reference: https://api.highcharts.com/class-reference/Highcharts.Axis#setExtremes
Source: stackoverflow.com
Related Query
- Highcharts rangeselector navigation - start on the lowest date / value
- how can I use rangeselector and navigation in highcharts in the given code
- Highcharts show the same yAxis start and end value with multiple data series
- highstock selected rangeSelector is computed from the current end date in the slider and not from the start date
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- Incrementing a date by the {point.x} value in Highcharts
- Highcharts y-axis unable to start from the given value
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- How replicate the value of Y Axis on both sides of the axis in Highcharts
- Highcharts - How to start x axis from an arbitrary value
- How do I get the value of a highcharts graph point on mouseover?
- Highcharts remove gap between start of xAxis and first value
- Getting the X Axis value in HighCharts
- highcharts data labels overlaps the plotlines value
- yAxis tickinterval in highcharts is not working as per the value
- How to remove the value and number labels from Highcharts angular gauge
- HighCharts - Show categories in x axis intead of the value of x in Bubble Chart
- I had created a scatterplot using Highcharts but the the point.z value is not getting displayed in tooltip
- grouping date in Highcharts if the date range is too big
- how to display 2 same highcharts without duplicate the code
- Is there a way to change the display value in series using highcharts
- put condition depending on the value HIGHCHARTS
- Highcharts graph should start entirely to the left and end entirely to the right
- Highcharts how to create legends based on the value of points
- How to make the Y Axis values not start from 0 in highcharts? How to display forcefully display the last category data on X axis in HighCharts ?
- Highcharts stacked column don't show the stacked with min value
- Getting the corresponding x-axis value from the max value in y-axis in Highcharts
- Highcharts : compare current value/previous value to get the rate
- Highcharts addPoint: Unable to get value of the property 'addPoint': object is null or undefined
- How to pass php value in the "formatter" of Highcharts in Yii2
More Query from same tag
- HighCharts : How to add click event on colorAxis in heatmap
- HighCharts Custom SVG Marker Symbol
- Can we display a tooltip by default not by mouseover
- Stacked column highcharts change x and y
- Using HTML with Vue or how to adapt it to Vue.js
- Chart not moving fluently when adding value to two lines on interval
- highcharts tooltip shows scroll bar
- Highcharts multiple fill colors
- Display multiple points with exact same value in scatter HighCharts
- conditional marker colors in highcharts
- Highcharts custom events plugin right click event not firing
- Responsive behaviour for ng-highcharts with compiled ng-click on xAxis labels hidden on load
- Rescale Y-axis in Highcharts after zoom while maintaining zoomType=x behavior
- How to add one more value against at the end of each bar with a legend
- Highcharts + Highslide: When opening a new highslide popup or clicking anywhere else, close any previously opened popups
- Export multiple series from highcharts into CSV
- Highcharts issue with max value (100) - React
- Highcharts Gantt - data labels in top row are not respecting y offset positioning
- Highcharts. Add text at right side and export all into PDF
- Highchart : get image url after exporting
- How to make a Highstocks x-axis even and regular?
- HighCharts selects the wrong data point
- Highcharts Dynamic candlestick
- Set color of highchart column according to average or limit value
- Show ticks on x axis in local time with highcharts api
- Can't get map to work with highcharts-vue
- How do you set the text-overflow property of a highcharts-legend-item to ellipsis in styled mode?
- Highcharts inverted line where dates go upwards, not downwards (reversed series)?
- generate candle point for empty date
- Sending Generated Highchart image via email