Closed flolege closed 1 month ago
EDIT: The chart DOES update while I am/keep resizing the browser window.
+1 Easy to reproduce problem.
Any workaround/Solution?
same problem here
same problem
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have a Chart component which gets chart data from two sources: The first provides historic candlestick data every minute. The second provides real time data of the current candlestick. Both update the series object via setState.
The issue is, that only the first source updates the chart.
I expect that after the second source sends a current candle stick data and i update the state, the last candlestick updates on the chart, but it doesnt. It doesn't move. Although the render is triggered after both updates (from first and second source), which i can seek in the console output. Also I can see in the log that this.state.series has exactly the same format after both kind of updates.
Here is the code of my chart component:
`import React from "react"; import Chart from "react-apexcharts"; import moment from "moment";
export default class ChartComponent extends React.Component { constructor(props) { super(props);
}`
And here an example console output where the structure of series is visible: