Skip to content

Don't try to draw spikeline if the axis isn't on the chart. #1604

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

Closed
wants to merge 2 commits into from

Conversation

rpaskowitz
Copy link
Contributor

Noticed the line wasn't being drawn and errors were being logged to console on the last chart at https://plot.ly/javascript/line-charts/. This should clean that up.

@etpinard
Copy link
Contributor

Hmm. I'm not convinced this is the desired behavior (even though this patch clears some console errors). I can see spikes on invisible axes being somewhat useful (?)

@etpinard
Copy link
Contributor

cc @alexcjohnson

@alexcjohnson
Copy link
Collaborator

Nice catch @rpaskowitz! But I think @etpinard is right, we should find a way to still show the spikes. Particularly in across mode the spike can be useful without pointing to a labeled value on an axis.

I propose that if the axis is invisible, we act as though it would have been at the farthest left/bottom of all subplots it's used in. Sound reasonable?

@etpinard etpinard added status: in progress bug something broken labels Apr 19, 2017
@rpaskowitz
Copy link
Contributor Author

Yeah, given the use of comparing data points, still drawing the line makes sense.

@etpinard
Copy link
Contributor

etpinard commented Sep 1, 2017

Will be fixed in #1980

@etpinard etpinard closed this Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants