Echarts
Create a Echarts figure.
@solara.component
def FigureEcharts(
option: dict = {},
on_click: Callable[[Any], Any] = None,
on_mouseover: Callable[[Any], Any] = None,
on_mouseout: Callable[[Any], Any] = None,
maps: dict = {},
attributes={"style": "height: 400px"},
):
...
See The Echarts website for examples
Note that we do not support a Python API to create the figure data.
A library such as Pyecharts can help you with that, otherwise you can provide the data simply as data similarly as on the Echarts example webpage.
Arguments
- option: dict, the option for the figure, see the echart documentation.
- on_click: Callable, a function that will be called when the user clicks on the figure.
- on_mouseover: Callable, a function that will be called when the user moves the mouse over a certain component.
- on_mouseout: Callable, a function that will be called when the user moves the mouse out of a certain component.
- maps: dict, a dictionary of maps to be used in the figure.
- attributes: dict, a dictionary of attributes to be passed to the container (like style, class).
Example
Echarts
Event data
Click data: None
Mouseover data: None
Mouseout data: None