score:6
changing only options will not work for highcharts - those options are used once for generating chart. if you want to change those options you should call chart.update
with new options or a more dedicated update e.g. for series data you can use series.setdata
.
how others are handling this:
official highcharts react wrapper
highcharts-react
is usingchart.update
- the relevant code line.third party
react-highcharts
is rebuilding highcharts chart using new options. it's less optimal, but generally a more secure approach for them (it's third party code, so in case of any bugs they need to wait for the bug to be resolved). relevant code: callrenderchart
on updates and creating the chart in therenderchart
.third party
react-highcharts-wrapper
also rebuilds a chart on update - here is explained why.
about animation:
when chart is rebuild (created anew) initial animation runs (unless otherwise specified in chart's animation option) and for dynamic updates like chart.update
chart is redrawn with animation enabled by default.
Source: stackoverflow.com
Related Query
- Is it possible update Highchart data automatically and make animated effect?
- Make Highchart and Highstock Have a Uniform Time X-Axis for Disparate Data Points
- How to style Highchart data table and make it responsive?
- Highchart extend x-axis and then update y-axis data
- Can color of data label be different inside and outside of the bar in Highchart
- Highcharts - Global configuration with common code and unique data & Headings
- Showing multiple data with same x and y in highchart
- How to achieve the best possible performance with mutable data and real-time charts in React?
- Highchart Time Data With Irregular Interval and Text
- Place Data in Highchart using json and post url
- Highcharts smooth transition on data update using Angular and ng-highcharts
- Group Highchart time data into weeks and months
- Update Highchart data form exported button
- Unable to create Highchart where i can show different - different data on clicking category and series
- How can i export row data from highchart to excel file and not csv?
- How can I pass my sqlite data to django, and make chart?
- Convert and Sort Data for HighChart Column Range Representation
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- In highchart of column type and xaxis of datetime type showing more ticks for month data
- Highchart reduce gap size in heatmap and data missing
- Loading data to Highchart from MySQL and displaying in appropriate way
- javascript - highchart xaxis datetime and yaxis data
- how to add data from database and set it to data serie in highchart C#
- Javascript - Highchart - tooltip position of data points and flags
- Create Highchart (Column chart) and read data from external json file
- How to add multiple series dynamically and update its data dynamically
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- set minimum and maximum values for axis' data in highchart
- array and object handling in javascript for getting highchart json data
- Format number data with comma and unit in Highchart
More Query from same tag
- Tree map- colorAxis Behaving Differently
- highcharts gantt display as bar instead of lines
- Highchart.js variable length input doesn't work
- Highcharts, use error bar with Data Module
- Highcharts - detect when render (or redraw) event is caused by a resize/reflow?
- Highstock doesn't support custom (3 days) tickInterval with formatting
- Highcharts remove() Inconsistencies
- RRD raw data to JSON
- Highchart data series filled with different colors
- Difference between hiding a div initially and hiding it dynamically
- Highcharts repeating same label value on Y Axis
- How does HighCharts Series.update() handle a new tooltip positioner?
- Highcharts - Export with background color
- Highcharts Sync charts vertically
- JSHint and grunt.js - Highcharts is not defined
- How to get data in Highstock from PHP MySQL data on AJAX call
- Highcharts Export Chart To PDF on The Fly Using TCPDF
- Highstock - custom tickPositioner and tickInterval
- Highcharts : Info about clicked legend item pass to controller
- Disable average values on highchart line graph
- Highstock - Remove axis and series dynamically
- How do i enable scrollbar in highcharts in react
- Color each point individually in column chart highcharts
- What kind of charts library is being used on this Huffington Post page?
- Show xrange x and x2 values in chart
- Format x-axis of highchart: only showing full numbers
- Dynamic values above column + jQuery Highcharts
- Like to show all the labels of x axis in highchart
- Issue with last column width in Highcharts
- highcharts line graph with ajax