question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chart seems to be updated twice in a row

See original GitHub issue

I 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 updateed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
benmccanncommented, Oct 7, 2019

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 in master fixes your issue?

0reactions
benmccanncommented, Oct 8, 2019

Ok. I will close this issue then since the twice in a row issue is solved

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found