-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Finance traces create a range slider by default but don't clear it on deleteTraces
#1473
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
Comments
My gut feeling says no. Plotly.newPlot('graph', [{
}], {
xaxis: {rangeslider: {}}
}) currently outputs which looks right, a range slider can exist without data attach to it. I believe I used the word orphan to describe trace-less cartesian axes. That concept sounds extendable to range slider too. |
But @alexcjohnson in #289 (comment) regarding the orphan logic wrote:
so maybe my gut feeling is wrong. |
No, I think your gut feeling is right - when you make a plot with no data but an explicit range slider, it should show up. I could imagine someone building an application that starts out looking like this and then gets data added to it, and they might think it looks better this way than with the range slider appearing with the first data, so they should have that option. My concern was that |
Correct. But that's only the case for Plotly.plot(gd, [])
Plotly.addTraces(gd, [{
type: 'ohlc',
/* */
]})
Plotly.deleteTraces(gd, [0]) remove the slider. I'll investigate. |
fixed in #1472 Renaming this issue to reflect item 2
|
deleteTraces
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
Plotly.deleteTraces(gd,[0])
ohlc_first.json says nothing about a range slider, it was just created by default. So there are two pieces to this:
@etpinard the first part is a clear bug, what do you think about the second part though?
The text was updated successfully, but these errors were encountered: