score:0
All right, I was doing it the other way around, and that's why I was not able to reproduce the described error. Well, so now I see the problem, but as I thought, it's caused by passing not sorted (x ascending order) data, what you can notice after opening the browsers console, and see the Highcharts #15 error.
In order to make it work correctly, you need to always make sure that you're passing the data, which is sorted in ascending order (point x values are increasing along with the array element index).
So, to sum up, sort the array:
[
// data here
].sort((a, b) => a.x - b.x)
then change the the way you prepare (slice) the initial data:
data.slice(data.length - 1 - 15, data.length - 1)
and now it should work as expected.
Live examples:
- Without React: https://jsfiddle.net/BlackLabel/37cdryg9/
- With React: https://codesandbox.io/s/highcharts-react-demo-forked-q3whu
Source: stackoverflow.com
Related Query
- Trying to update high chart data
- angular2-highcharts: update rendered chart data
- How to use add series and update methods in the high chart wrapper for angular?
- How to set variable in high chart data field
- trying to dynamically update Highchart column chart but series undefined
- In highcharts,tool-tip does not move when chart has high data unlike when it has low data
- How to remove sliced line from pie high chart if there there is only one object in data
- High chart data downloads but does not display in browser using node
- High Chart Data label Formatter not working properly
- How to show grid-lines when chart data is empty, in High Stock charts?
- parsing JSON data to render high chart graph
- Series Data for column high chart
- Highcharts display label for pie chart using html table as data source
- High Chart sunburst chart start data from inner level
- high chart data grouping is not considering all the values while zooming
- High charts update data series
- Update HighCharts chart when AJAX Updates my data on my page
- Angular High Chart - Loading data from Observable
- On Mouse over on the high chart data the tool tip value should be displayed next to legend label
- How to update chart only on unique data in HighCharts
- show one series data at a time in high chart column graph
- unable to Add display data values on top of bar high chart
- FusionCharts Failed to draw different chart on same data source
- High Charts Line Chart with missing data
- How to pass JSON data to update Highcharts Pie chart
- High Chart line single data set but multiple color, not gradient color
- Highcharts: update chart when data actualized
- Issues plotting two lines with JSON data on high chart using Angular JS - name undefined
- Highcharts chart update function causes missing data point
- Highcharts cloud issue with data source when duplicating chart
More Query from same tag
- Highcharts - with datetime axis labels overlap
- highcharts display tooltip on category label hover
- How to set tooltip border color from series in Highcharts
- How do I make the background of Highchart's SVG clock transparent?
- Bubble chart :Cannot read property 'parts/Globals.js' of undefined
- How to show/hide labels customizely in highcharts
- Using chart.update on a chart using renderTo
- How to get current level on drilldown event in Highcharts treemap?
- Highstock.js: Not able to create multi pane chart with two stacked column charts, one "normal" and the other "percent"
- Highchart bars lower half gets disappeared
- Highchart series is choping
- show highcharts node text from beginning if the text is to long
- How to use scrollbar on highcharts heatmap?
- Reset yAxis Min and Max on drilldown
- How to use .top() method in a crossfilter group with nested values
- How to show 0 value infomation in treemap highcharts
- How do I get Highmaps zoom level and is there a Highmaps zoom event?
- Dynamically Change onSeries property
- HighChart bubble chart is not working
- Highcharts IE issues with jQuery ajax load
- Highcharts fixed / floating axis
- Highcharts legend events without displaying a legend
- How to remove High Charts Gird Lines
- Highcharts mouse tracking/mouseover feature is slow on chrome but not slow in firefox or IE
- How to apply highchart's license
- Static Highcharts graphic with csv data and dynamic footnote
- Highcharts not redrawing when series are updated inside subscribe callback
- R highcharter get data from plots saved as html
- highcharts. How to determine the coordinates of the point where the CLICK was made?
- Displaying count on bar and percentage on Y-axis of cloumn chart using Highcharts