score:3
the third parameter of addpoint
is set if you what to shift a point after add this one.
so, what is happening ? you're adding a point and then removing it.
change:
series.addpoint([x, y], true, true);
to:
series.addpoint([x, y], true);
reference
score:6
change your load function so that the shift parameter doesn't apply before you've added your 20 values, see this jsfiddle
load: function() {
// set up the updating of the chart each second
var series = this.series[0],
maxsamples = 20,
count = 0;
setinterval(function() {
var x = (new date()).gettime(), // current time
y = math.random();
series.addpoint(
[x,y]
, true
, (++count >= maxsamples)
);
}, 1000);
}
Source: stackoverflow.com
Related Query
- Highcharts - Dyanmic graph with no initial data
- Creating a line graph with highcharts and data in an external csv
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts not displaying series data for graph with multiple Y-axes
- HighCharts & MVC: How to load whole graph definition and data with JSON?
- HIghcharts column graph with more than 50 data points
- Draw real time data graph with Highcharts
- Data from MongoDB results with empty Highcharts graph
- Highcharts series visibility with csv data source
- How to have multiple highcharts with different series data in vuejs without repeating code
- Bug in Highcharts where negative numbers in data seem to cause bug with graph drawing
- Highcharts cloud issue with data source when duplicating chart
- The continuous update highcharts with more data plotting the continuity is not visible so we need that continuity in the centre of the graph
- HighCharts Bubble graph JSON as data source
- Updating data with Highcharts alters initial set
- Scrape data from graph generated with Highcharts
- make highcharts graph with data in json format, with 4-element array
- Reload chart data via JSON with Highcharts
- Resize data points with highcharts
- Highcharts doesn't display series with lots of data points
- Highcharts data series issue with ajax/json and PHP
- Load data into Highcharts with Ajax
- Highcharts custom visuals with Data binding PowerBI
- Updating data in charts, highcharts with angular, highcharts-ng
- Highcharts with JSON data and multiple series
- How to pass custom data into Highcharts graph click event
- Highcharts scatter plot with lots of data points running really slow
- Appending Data with Highcharts (real time updating chart)
- highcharts with null data points
- Highcharts Angular with API data
More Query from same tag
- Highcharts: aligning data labels on the same line in bar charts
- Spring MVC output CSV to highcharts
- Nested/multi-level/drill-down Pie Chart in Javascript?
- Renderer Bring to front highcharts
- Highcharts Grouped Column Chart with Multiple Groups?
- Highcharts multiple dynamic panes with single legend
- Fill area beneath scatter points with color in Highcharts 3d scatter plot
- Highchart with Range selector for SQL Data in html website
- Multiple X-axis values in highcharts
- How to increase and decrease the height of the gridlines in advanced accessible highcharts
- Show only month labels on HighChart xAxis
- How to get hovered date in Highcharts spline?
- Highcharts basic line chart - Y-axis label name
- Highcharts: setOptions for two different series of charts?
- Convert data to percentages HighCharts
- how to make my series of axes as normal as highercharts width?
- Multiple Series in HighStock navigator Angular
- Highcharts bar chart with capacity
- Changing xDateFormat in highchart tooltip programatically
- Highcharts: move renderer (custom drawn)
- Highcharts - Is there a way to disble styled mode for certain elements?
- Problems formatting tooltip date on HighStock chart
- Config gauge series highchart
- How to change the color of the each slice in piechart based on the backend response using highcharts
- adding increase arrow in highcharts
- Highcharts doesnot reload or re-render chart on value change
- Is there a maximum number of x-Axis items in HighCharts
- Highstock: Plot name labels
- How can I resize Arc in highcharts?
- How to keep the highcharts legend "on" while hiding the series