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.

Stacked stepped time lines does not rendering correctly

See original GitHub issue

I’ve a stacked stepped time lines chart that seems to render uncorrect values randomly. This is the screenshot of the problem: stacked_line_bug_1 stacked_line_bug_0

This is the codpen link to the bug reproduction: https://codepen.io/davideferre/pen/XWNxLKp

I’m using 2.9.4 chart.js version.

As you can see in the screenshot or in codepen the first two point of the violet COMP12 line are 1 and 0 but they are at the same height on the Y axis. Sometimes the line render correctly but when I try to disable a dataset the other datasets fall on the same behavior. Am I doing something wrong or this is a bug?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
etimbergcommented, Mar 9, 2021

It appears better when the data goes in as just an array of values. https://codepen.io/etimberg/pen/oNYQjQa

1reaction
kurklecommented, Mar 9, 2021

In 2.9 the stacking is based on the array index of the values. So you’d need to make sure each data array contains value (or undefined/NaN) for each point. Or you could upgrade to v3 beta.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Time series: stacking bug · Issue #34912 · grafana ... - GitHub
i'm wondering if they interpolate during rendering or during data pre-processing. also, do they interpolate properly with stacked stepped, ...
Read more >
angularjs - Chrome not rendering Google Charts (Stacked Bar ...
The workaround would be to to prepend window.location before the hash in all the elements containing the clip-path attribute:
Read more >
After Effects render&preview doesn't match timeline
I have a problem with rendering my video. Some layers are invisible until the next layer startpoint, despite the fact that their own...
Read more >
Fixing Choppy Playback and Other Common Premiere Pro ...
But don't resign yourself to wasting even more time by waiting around for timeline renders just to watch what you've created. Let's solve...
Read more >
A deep dive into Manim's internals
This article is intended as some sort of life line through the render process. ... Manim is virtually not involved in that step,...
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