score:4
Accepted answer
You need to add chart.redraw();
function createChart(){
s1 = chart.addSeries({data:randomData(20),name:'Line'+i},false);
chart.redraw();
}
score:8
The problem is that you set the set parameter of addSeries as false.
In this case you have to set as true and it will redraw the chart after add the new serie.
For one serie.
chart.addSeries({data:randomData(20),name:'Line'+i},true);
Like the following example.
jsfiddle
Or if you want to add more than one serie in each click you just have to change one thing.
function createChart(seriesData){
s1 = chart.addSeries(seriesData,false);
}
$('#create').click(function(){
createChart(seriesData);
chart.redraw();
});
You will add all of your series and after that redraw the chart, so you don't have to redraw your chart each time you add a new serie.
Source: stackoverflow.com
Related Query
- Highchart dynamic creation - not rendering properly
- Dynamic chart is not working properly (highcharts)?
- Highchart not rendering in shiny using 'Highcharter' package
- my highchart is currently is not working with pie spline chart in updating after rendering chart
- Highcharts Tooltip not rendering properly if it has material icons
- Highchart min/max values doesn't set and chart not plotted properly
- HighChart not rendering on C# MVC
- Highcharts not rendering properly with too many series
- Highchart in ASP MVC page load not working properly
- Highchart not resize properly in angular js
- Highchart Legend labelFormatter not working properly
- Highchart Pie Chart not working properly with series
- x-axis, y-axis lines does not appear, when I include 3D chart library of HighChart in my code
- Highchart React not rendering heat map after refresh its throwing error
- Highchart not rendering data from dynamically created array array
- Highcharts - Dynamic + Multiple charts not rendering
- Jarviswidget fullscreen not rendered properly with Highchart
- why my highchart code is not working?
- Highcharts not rendering properly on legend clicks
- Dynamic high chart not rendering in MVC C#
- Highchart yAxis.ceiling not working properly
- HighChart World Map not rendering in Angular 7
- Highchart not rendering inside a ajax function angularjs
- Angular dynamic highchart integration - response is not updating in the chart component
- Highchart map does not support IRS country code
- Highchart tooltip hover not working properly
- Pie Chart is not coming with dynamic data in HIghChart
- Highcharts: Set y Axis Max and Min dynamically, and not at creation
- Resolve Conflict When Using Highchart and Highmap together (TypeError: ma is not a function)
- Highcharts: Chart does not resize properly by making the screen smaller
More Query from same tag
- Renderer Bring to front highcharts
- Is there a way to disable mouseover on highcharts entirely?
- Make chart.renderer.path as plotline Highcharts
- highcharts configuration
- Highcharts setting the colour of columns in each month period
- Highcharts buggy with more than 999 items in series data?
- Trying to push data to a JSON array
- Two synchronized vertical lines in highcharts
- Custom Y-Axis Scale in Highcharts React
- angularjs and highcharts, labels not shown unless I hover over the data points
- Highcharts displaying improperly labeled data points
- Dynamic xAxis Highcharts
- Unable to perform xAxis[0].setCategories & series[0].setData
- Highcharts: wrap column chart month ranges in year
- HIghcharts tooltips only for start and end point.
- How to access function of buit-in button in highcharts using asp.net
- Highstock rangeSelector from days in the future
- Highchart xAxis.currentDateIndicator showing the current time (passing by)
- Highcharts column range overlapping columns
- Highchart Legend labelFormatter not working properly
- highcharts heatmap Uncaught TypeError: Cannot read property 'prototype' of undefined
- Highcharts Time Data With Irregular Intervals In Wrong Order
- Highcharts - How to remove drilldown link on empty items?
- Convert SVG to an image/png using JS/PHP
- Highcharts stack graph stack not visible
- How to generate multiple high charts in ng-repeat
- Can we Extend Highstocks features to Highcharts?
- How to remove empty space between bars in Highcharts polar chart?
- Highcharts: Set y Axis Max and Min dynamically, and not at creation
- How to position a Highcharts title on the right of the chart?