score:1
You can use setExtremes
method in chart's load
event and set the initial selected area.
chart: {
...,
events: {
load: function() {
const xAxis = this.xAxis[0];
xAxis.setExtremes(
xAxis.dataMin,
xAxis.dataMin + (xAxis.max - xAxis.min),
true,
false
);
}
}
}
Live demo: https://jsfiddle.net/BlackLabel/hm4xLzft/
API Reference: https://api.highcharts.com/class-reference/Highcharts.Axis#setExtremes
Source: stackoverflow.com
Related Query
- highstock selected rangeSelector is computed from the current end date in the slider and not from the start date
- Get the currently selected range from RangeSelector in Highstock
- Strange character in the Highstock source code
- custom ticks based on selected range from rangeSelector in Highstock
- Get the currently selected rangeSelector from an event unrelated to the chart
- Highstock charts - Show the blank space up to the current date
- Highstock rangeSelector from days in the future
- Highstock: Remove the word "Zoom" from the rangeSelector
- How to extract the data from highstock chart
- How can I get the navigator selection from a Highstock chart?
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Highstock - Remove bottom date tooltip from line chart
- How to toggle date input datepicker in Highstock rangeSelector
- How to get selected date from highstock?
- Is it possible to have two Y Axis in a highstock chart from highcharts one on the left and another on the right?
- Highstock charts - change position of rangeselector From and To inputs
- How to synchronize the From To date wrapper in Highstock?
- I want to capture the starting and end point of all the series in my multigraph and show it in a table using MeasureX of StockTools in Highstock
- How can i use Highstock rangeSelector get the yAxis Max_value and Min_Value
- How do i show Last seven days of a week from current date in area spline categories highcharts
- HighStock Chart: Extract time based on user selection from the Navigator window
- Highstock chart - selecting '1 month' button in rangeSelector not changing button style as selected
- How to display maximum and minimum value on the basis of date selected in High Charts?
- Highcharts.js How to put current time label in the end of xAxis
- How to get the exported image without moving from the current window when using mobile devices
- Highcharts rangeselector navigation - start on the lowest date / value
- How can I change the background color of horizontal bar if date value is less than to current date?
- How to remove batch of points in the period based on xAxis(time) coordinates from the series in Highstock
- How to do a date range to view data from selected date highcharts
- Highstock compare How to compare current data point with the previous data point
More Query from same tag
- Series with different time ranges in Highcharts
- Highchart heatmap for days in a month from 8:00 to 17:00
- HIghcharts: Bubble are not showing up beyond scale
- Highcharts: How to exempt a series from redraw zoom calculations?
- HIGHCHARTS - Given a series with UNIX stamps and values pairs for the data, how do I show only the date for the first and last point on xAxis?
- How to extract Min and Max date from Highcharter stock graph?
- How to show other point property in bubble highcharts using tooltip
- Dynamically hide or show legend in highchart
- highcharts round generated y labels in 1024 multiply not 1000
- Highcharts Column with php
- highcharts pie chart multiple sections selection
- jquery highcharts multiline mvc asp.net
- Highcharts - Plot by week with and label formatter
- Manually activate Drill down in Highcharts chart by clicking on another chart
- can we manipulate the area covered in MouseOver/Out event in areas chart: Highcharts
- TypeError: $(...).highcharts is not a function
- Highstock xAxis datetime pointer line
- Draw charts with a Loop using HighCharts in symfony
- Extending typescript interface from another module
- Rails and Highcharts
- epoch datetime not displaying correctly in HighStock chart
- Highcharts C# To JSON - Structuring Series Data
- How can I access the 'this' field in plotOptions of highcharts
- Highcharts (grouped_category styling) and tooltip formatter not working
- Redrawing the tooltip inside of the tooltip positioner callback
- How to refresh pane background when update date on gauge highcharts?
- Why do these two Highcharts calls produce different windrose charts
- Lazy_high_chart: why options.xaxis undefined?
- How do I use dates from a LinkedHashMap for the x-axis on a Highcharts line graph (using Thymeleaf)?
- Resize High Charts based on grid layout width and height using react