shyft.dashboard.examples.range_tool
Example of how to use Bokeh’s range tool.
For this we need two figures showing the same data but with different time periods - the main figure is zoomed in on the selected period and the second figure shows the full time period.
This goes against the standard TsViewer usage and requires that 2 identical DataSources and TsViewers are created.
Classes
|
- class shyft.dashboard.examples.range_tool.RangeToolExample(thread_pool, app_kwargs: Dict[str, Any] | None = None)[source]
Bases:
AppBase- __init__(thread_pool, app_kwargs: Dict[str, Any] | None = None)[source]
Init of base app
- Parameters:
thread_pool – Optional thread pool used for async calls within the app
app_kwargs – Optional keyword arguments provided to the app through the start_bokeh_apps methods
- property name: str
This property returns the name of the app