score:9
Accepted answer
Update the name
, then set the data
with the desired animation:
chart.series[0].update({name:'new title'});
chart.series[0].setData(newData);
score:1
I found a better solution
chart.update({ series: newSeries }, true, true, true);
The third argument is the key:
update(options [, redraw] [, oneToOne] [, animation])
score:7
Since the correct answer did not work for me with multiple series, I had to do it more similar to this:
First update the names since it's a quicker operation without animation.
// Pass false to skip redraw (since there are multiple operations, for better performance)
chart.series[0].update({name:'new title 0'}, false);
chart.series[1].update({name:'new title 1'}, false);
chart.series[2].update({name:'new title 2'}, false);
chart.series[3].update({name:'new title 3'}, false);
// Redraw the name changes before updating the data.
chart.redraw();
// Update the series data with animation, passing false to redraw here as well.
chart.series[0].setData(newData, false);
chart.series[1].setData(newData1, false);
chart.series[2].setData(newData2, false);
chart.series[3].setData(newData3, false);
// Now we redraw the series data
chart.redraw();
Source: stackoverflow.com
Related Query
- Highcharts series update with animation
- How to update Highcharts with multiple series via JSON?
- I want to update my series dynamically on highcharts with a click & also bring it to the original way by clicking on an other button (#previous)
- Highcharts series visibility with csv data source
- Cannot update Highcharts series in click event with highcharts-ng
- Highcharts How to update all series with ajax
- How to have multiple highcharts with different series data in vuejs without repeating code
- highcharts spline with multiple series update every few seconds
- Highcharts Angular update chart with new options - including linked series
- Update two series on the same graph dynamically with HighCharts
- HIGHCHARTS Treemap update is not working with animation
- How to update just data attribute under series in highcharts with json?
- Dynamic update multible series Highcharts with single point XML file
- Highcharts doesn't display series with lots of data points
- Highcharts data series issue with ajax/json and PHP
- How To Use Epoch Time With Highcharts Series Data?
- Dynamic update of multiple series in highcharts
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts buggy with more than 999 items in series data?
- Adding a series dynamically with HighCharts Stock Charts
- Highcharts with JSON data and multiple series
- Highcharts - Scatter chart with a line connecting the dots in the series
- Highcharts: update series on multiple charts with same data
- highcharts piechart redraw with animation after setData()
- Highcharts 3.0, area chart with stacked and unstacked series - how to fix?
- Highcharts - Global configuration with common code and unique data & Headings
- Multiple Series Timeline with HighCharts
- Can I sychronize two highcharts series with different years (leap year)
- Highcharts not displaying series data for graph with multiple Y-axes
More Query from same tag
- highstock - adding annotations with over 1000 points
- Highcharts datalabels are not showing infront of each slice in pie chart
- use jquery function in a highcharts
- HTML5/JS Chart with Moving Average
- Highstock show avegrage values of selected Area
- Getting the actual nth-of type position of last-of-type
- individual point settings in a scatter/line plot
- using JSON dates with Highstock chart (asp.net MVC)
- High Charts - Split color of bar chart
- Highcharts / Highstock: x-axis dates appear as three dots
- Resizing HighCharts Chart Causes Changes to Max Y Value
- How to draw a straight dashed line across chart at zero
- Highchart / Easyphp / Batik
- Increase the height of the legends in highcharts
- Connect two different values with vertical line in highcharts
- Highcharts logarithmic chart not displaying series on webpage
- Testing Highcharts with selenium
- Hide navigator's top outline outside of selection
- I am facing image cut issue after upgrade Highchart version from 6.0.7 to 8.0.4
- Adding multiple series to the spline chart using dotnet high charts in asp.net mvc3
- Execute function after zoom highcharts
- How to add another same chart but with different data?
- World map paths data in react high charts
- HighCharts inside of a javascript function
- Issues plotting two lines with JSON data on high chart using Angular JS - name undefined
- Highcharts Dynamic different time calculate
- Update xAxis individual label position for printing Highcharts
- How to make hightcharts tooltip scrollable after it displays?
- Stock notes are overlapping on StockChart, Is there any way to handle this?
- Is it possible to create a chart which has conditional coloring and also shows up in legend?