score:1
Please take a look at this example: https://codesandbox.io/s/18836vk8oj - React does not switch components from the same class, the first component is only updated. Creating a new class for the second component is one of the ways to solve the problem: https://codepen.io/anon/pen/xmqvmX?editors=0010
const tabContent = [
<div>...</div>,
<TheChart chartData={ chart1 } />,
<TheChart2 chartData={ chart2 } />
];
Updating component with a chart fires chart.update()
, so for example if you want to change xAxis.type
you must change it in two configurations:
chart.update({
series [...],
xAxis: {
type: 'datetime'
}
});
chart.update({
series [...],
xAxis: {
type: 'linear'
}
});
Another issue here is that Highcharts for performance mutate series config object: https://github.com/highcharts/highcharts/issues/9732 - so you need create a deep copy of your options or change the structure of the project.
Source: stackoverflow.com
Related Query
- HighchartsReact does not render properly in custom Tabs
- Highcharts does not resize charts inside tabs
- Highcharts: Chart does not resize properly by making the screen smaller
- highcharts graphs in bootstrap tabs are not displaying properly
- Why does this highchart plot not render in IE or chrome?
- properly render an array of numeric values, not an array with strings
- tooltip in highcharts does not work properly
- Function does not work on first render instead the series is generated after the subsequent renders
- Pie chart from highcharts does not render via justpy
- Highcharts custom legend SVG symbol does not fade when you click to turn off series
- Tooltips does not appear properly in Highcharts ganttchart
- Highcharts heatmap does not render correct colours according to specified colour stops
- x-axis, y-axis lines does not appear, when I include 3D chart library of HighChart in my code
- ajax call does not fire jquery code
- Highchart does not render on webpage, Javascript
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- Highcharts does not render values received from Flask-socketio
- Highcharts custom indicator does not affect y axis range after zoom
- Highcharts Date.UTC does not work properly for real data
- highcharts render does not match grid in docraptor rendered pdf
- Highchart map does not support IRS country code
- Highcharts axis does not show properly values when numbers are so small
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- Highcharts.js will not render the chart, it says error "Cannot read property 'series' of undefined"
- Highchart dynamic creation - not rendering properly
- Highcharts does not work with wicked_pdf
- Highcharts reflow does not work on class selector
- Area range legend icon does not match marker
- Code works on fiddle but not when I do /show
- HighCharts error #18: Requested Axis Does not exist
More Query from same tag
- Highstock - custom tickPositioner and tickInterval
- Color plots depending of value
- Highcharts Graph Blank Using JSON Data
- HighCharts adding another variable
- Restrict mouseover area for a column to its own shape vs. surrounding area
- Highcharts Align pie charts to the Left
- how to load data from server with highchart inAngular 2?
- How to horizontally align Highcharter objects in Distill article in R Markdown?
- Highcharts: Removing the legend Symbol that comes with marker
- Can we display a tooltip by default not by mouseover
- Highstocks period scroll not working with jQuery tabs in IE
- Highcharts - bar chart columns too thin with too many series
- Plotting a scatterplot/bubbleChart along with Columnrange graph in highcharts
- Have an issue with JavaScript, AJAX code displaying data
- Modify a csv file line by line
- how to change the color of column in chart ?
- How do I include scripts in my AngularJS controller?
- I'm trying to use highcharts to display a series of points not just x and y
- Issue on Drilling Down and Up in Highcharts.js Using External Dom Buttons
- C# Parse string into arrays for HighCharts
- Tree Map in high charts fourth level is not working
- MySQL query from different databases in time to output in one graph
- Required help in JSON
- JSON.parse: unexpected non-whitespace character after JSON data in javascript
- Add more data to series in highchart pie chart
- Highchart Heatmap remove empty rows on legend toggle
- How can i pass my data in sqlite database to templates? ( to make line chart using highcharts)
- Highcharts Donutchart: Avoid showing duplicate legend with nested charts
- Highcharts React: Menu button doesn´t change from "view full screen" to "exit full screen" when fullscreen mode is on
- Highcharts - How to deploy data labels & tooltips for 2nd data series