GC.events()
Make the chart report clicks, selections, drags and zooms to Shiny.
The payload of each event is described at https://nvelden.github.io/geneviewer-docs/api#events.
Usage
python
chart.events(
click,
highlight,
rendered,
render_id,
dblclick,
select,
legend_click,
drag,
zoom,
)An argument shown without a default is optional too: left out, the chart keeps its default.
chart is a GC chart.
Arguments
| Argument | Type | Description |
|---|---|---|
click | bool | Report clicks as the input <id>_click. Default True. |
highlight | bool | Outline the part under the mouse. Default False. |
rendered | bool | Report each drawn update as <id>_rendered. Default False. |
render_id | str or float, optional | Identifier of the update; a new one marks a new load. |
dblclick | bool | Report double-clicks as <id>_dblclick. Default False. |
select | bool | Select genes and labels: <id>_select and <id>_selection. Default False. |
legend_click | bool | Whether clicking a legend entry hides its genes. Default True. |
drag | bool | Move labels, titles, scales and legend parts: <id>_drag and <id>_moves. Default False. |
zoom | bool | Report the window of the zoom slider as <id>_zoom. Default False. |
Value
GC: The chart.
