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

Legend is missed for argument x = -1 #1002

Closed
k-viktor-p opened this issue Jul 29, 2020 · 3 comments
Closed

Legend is missed for argument x = -1 #1002

k-viktor-p opened this issue Jul 29, 2020 · 3 comments

Comments

@k-viktor-p
Copy link

https://jsfiddle.net/0h1z72s0/

Legend is missed for argument x = -1, and to legend formatter passed value 'underfined'

@danvk
Copy link
Owner

danvk commented Jul 30, 2020

@k-viktor-p do you need to update the link? That's just the default dygraph jsfiddle.

@kevingross
Copy link

https://jsfiddle.net/3t1Lxp2j/

I have the same problem of missing legend when argument x = -1. I updated the jsfiddle to show the issue.

After looking in the source code, there is a test done which send 'undefined' when x = -1, see the extraction below:
this.cascadeEvents_('select',{selectedRow:this.lastRow_ === -1?undefined:this.lastRow_,selectedX:this.lastx_ === -1?undefined:this.lastx_,selectedPoints:this.selPoints_});

@mirabilos
Copy link
Collaborator

fixed in git

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

4 participants