score:2
It seems that the solution here is to compute extremes manually and set them in load
event:
load: function() {
var chart = this,
xAxis = this.xAxis[0],
visibleColumns = (xAxis.width - pointWidth) / pointWidth;
xAxis.setExtremes(pointStart, pointStart + pointInterval * visibleColumns);
}
Live demo: http://jsfiddle.net/kkulig/mpancrbc/
For some reason (bug probably) xAxis.min
value must be initialized when the container width is a small value (in my example it's less that 400 px or so).
API reference: https://api.highcharts.com/class-reference/Highcharts.Axis#setExtremes
Source: stackoverflow.com
Related Query
- Highcharts - Highstock: fixed width intervals with scrollbar
- How to reduce the space between Bars with a fixed bar width in Highcharts column chart?
- Fixed y-axis label width in Highcharts
- Column width in Highcharts when combined with spline
- Highcharts scatter plot with variable line width
- Highcharts - Global configuration with common code and unique data & Headings
- Difference between highcharts and highstock during real time trace and xAxis with max value
- when printing page with highcharts using javascript this.print() width values in css in @media print seem to be ignored
- Highcharts Time Data With Irregular Intervals In Wrong Order
- Highcharts / Highstock step line with gaps?
- Highcharts bar chart with fixed bar widths and gaps
- Highcharts with boost not rendering correctly at small intervals
- Highcharts graph width is incorrect when scrollbar is present, in bootstrap fluid span
- passing formatting JavaScript code to HighCharts with JSON
- How to have a highcharts chart in a container of a fixed width, and with a horizontal scrollbar?
- Highcharts - selection error with live data and different time intervals
- Issue with last column width in Highcharts
- Highcharts multiple x axis and yaxis. The width of the 1st x-axis is not in sync with browser resize
- Can't disconnect line chart with [null,null] and irregular intervals in Highcharts
- Highcharts and highstock license with google ads web site
- Change the legend in highcharts heatmap to show instead of a color bar, a set of fixed icons with hide and show on click
- How can I highlight every data point in Highcharts fixed width container?
- Changing bar width with pointPadding in Highcharts
- Highcharts : set a maximum number of ticks with a fixed interval
- Highcharts (Gauge) and Highstock on the same page with Meteor
- multiple pane in highstock has issues with scrollbar
- Strange character in the Highstock source code
- Highcharts series visibility with csv data source
- HTML table as data source for highstock charts using highcharts
- Highcharts / Highstock datetime null data connected even with connectNulls: false
More Query from same tag
- How can I group different series by different units using rangeSelector?
- HighCharts : 3D Pie Chart Not Displaying
- Blank slider placeholders
- How to POST Highcharts Image?
- Highchart is only showing properly at localhost
- Set 2d json to highcharts
- Highstock/Highchart OHCL not showing?
- Populating data to Highstock
- Pass a varible as input to Date.UTC
- How to fix HighChart Error #20?
- Bind highcharts chart to another series
- Highcharts Won't load from php json, but it could load from data.json file
- Highcharts tooltip on IE9
- How to override the css of Highchart
- Arrange the html text inside flag ( HighStock)
- Get xAxis extremes before fire afterSetExtremes in higcharts
- highcharts fixed point width is not working when a series is hidden
- Toggle specific highcharts when checking/unchecking checkboxes
- Highcharts Export Server on AWS Lambda
- Align Legend with x-Axis Title in HighCharts
- Highchart org chart type error with ionic application
- Highcharts get table from range selected only
- Dynamically update gauge on highcharts
- Highcharts with a thick line - at 0 values the line is half hidden
- show highcharts node text from beginning if the text is to long
- highcharts Cannot read property 'legendBackgroundColor'
- Highcharts, set legend height dynamically
- Adding data to highstocks by pushing array
- Rails 4.1 Error Loading Chart: No adapter found highcharts
- How to get a summary from current navigator series of highcharts?