Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacked graph not properly handling null values #950

Open
ischolten opened this issue Dec 1, 2018 · 1 comment
Open

Stacked graph not properly handling null values #950

ischolten opened this issue Dec 1, 2018 · 1 comment

Comments

@ischolten
Copy link

Filing a bug report? Please include the following:

Currently I have two series of data that I am displaying as a stacked line graph. The data looks similar to this:
[[null, null],
[1, null],
[null, null],
[null, 1],
[1, null],
[null, 1],
[null, 1],
[null, 1]]

where the first value represents one series and the second value represents another. Currently the graph looks like the following when stackGraph is true.

screen shot 2018-11-30 at 4 25 01 pm

I would expect that the second(orange) series would move down and show at value 1 on the y axis since the first series had no values at that point.

  1. Browser and Operating System that exhibit the problem
    Currently using Chrome.

  2. Version of dygraphs that you're using: 2.1.0

@mirabilos
Copy link
Collaborator

Does it work as expected if you use NaN instead of null? See https://dygraphs.com/data.html#array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants