Help us help you! Writing your post to the following guidelines will help Bokeh Discourse reviewers understand your question, and increases the likelihood of a response.
What are you trying to do?
Hi, I am trying to achieve the DataShading feature by myself. I tried to update the columndatasource
in the change event of X-axis (I used DataRange1d
)
What have you tried that did NOT work as expected? If you have also posted this question elsewhere (e.g. StackOverflow), please include a link to that post.
However, I found that after zoom-in, the data was updated, so the range couldn’t be restored after click reset. And I found there are reset_start
and reset_end
in Range1d
class, but it seems not as friendly as DataRange1d
since I need to set the range and the margin, etc. by myself.
So, is it possible to Is it possible to support reset_start
/ reset_end
in DataRange1d
?
Appreciate your great works, thanks!
If this is a question about Bokeh code, please include a complete Minimal, Reproducible Example so that reviewers can test and see what you see.
In some cases, a screenshot of your plot will also be helpful.