ipecharts.baseechartswidget module#

class ipecharts.baseechartswidget.BaseEchartsWidget(**kwargs: Any)[source]#

Bases: DOMWidget

option Instance()#
style Dict()#

Style configuration

theme Unicode(None)#

Theme to be applied. Defaults to ThemeManager.

device_pixel_ratio Float(0.0)#

Ratio of one physical pixel to the size of one device independent pixels. Browser’s window.devicePixelRatio is used by default.

renderer Unicode('canvas')#

Renderer type: ‘canvas’ or ‘svg’

use_dirty_rect Bool(False)#

Enable dirty rectangle rendering or not, false by default.

use_coarse_pointer Bool(False)#

Whether to expand the response area when interacting with elements. null means enabling for mobile devices; true means always enabling; false means always disabling

pointer_size Float(None)#

Size of expanded interaction size in pixels. It should be used along with use_coarse_pointer.

width Unicode('auto')#

Specify width explicitly, in pixel. If not set or set to None, a default .echarts-widget-auto-width class is added with 100%.

height Unicode('auto')#

Specify height explicitly, in pixel. If not set or set to None, a default .echarts-widget-auto-height class is added with 500px.

locale Unicode('EN')#

Specify the locale.There are two builtins: ‘ZH’ and ‘EN’

on(event_name: str, query: str | Dict | None, handler: Callable) str[source]#
off(event_name: str, handler: Callable | None = None)[source]#
dispatchAction(payload: Dict)[source]#