Chart seems to be updated twice in a row
See original GitHub issueI just noticed that all hooks in my self written plugins and all axis callbacks are called twice, so I presume the chart is running it’s update and drawing cycle twice somehow. Is this maybe expected behavior?
I measured from beforeUpdate
to afterUpdate
and this needs ~15ms. Running twice this is 30ms. On some pages I have 5 charts. 150ms is already very noticeable.
Expected Behavior
Run the chart drawing/update cycle only once.
Current Behavior
The chart cycle is running twice. All hooks and callbacks are called twice.
Steps to Reproduce (for bugs)
- I turned off animations.
duration: 0
- Chart is only instantiated once.
- canvas-element is only rendered once.
- Data is not changed in the meantime nor mutated.
- Chart is just freshly created, never
update
ed.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Two Excel Chart Problems solved in two minutes ... - YouTube
There are two issues with Excel charts. Two Excel Chart Problems solved in two minutes. One is that dates show up in a...
Read more >Repeat item labels in a PivotTable - Microsoft Support
Right-click the row or column label you want to repeat, and click Field Settings. Click the Layout & Print tab, and check the...
Read more >Display numbers twice on x axis in excel chart - Super User
With the graph selected, click the Select Data option from the ribbon; With the cursor in the Chart data range text box, highlight...
Read more >Why is Jupyter showing charts twice? - python - Stack Overflow
So far "This seems to be caused by the plot_acf function both plotting ... 3) add a semicolon after the row plot_acf(my_model.weekly_sales);.
Read more >[SOLVED] Values appear twice in PivotTable row labels
Hi Everyone, I have a PivotTable that is summarizing a data table. In the configuration panel, I've dragged one column ("C92") to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The axis may be updated twice in 2.8.0 and earlier in order to size the various chart components. In
master
it has been fixed so that this happens far less often. Can you check if the code inmaster
fixes your issue?Ok. I will close this issue then since the twice in a row issue is solved