GC.toolbar()
Set the toolbar: when it shows, its buttons, icons and colours.
Custom icons are Font Awesome icons by name, which need Font Awesome on the page.
Usage
python
chart.toolbar(
show,
position,
buttons,
size,
color,
hover_color,
tooltip_background,
tooltip_color,
tooltip_border,
tooltip_radius,
tooltip_shadow,
font_family,
icons,
)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 |
|---|---|---|
show | str, optional | "hover", "always" or "never". |
position | str, optional | "topright", "topleft", "bottomright" or "bottomleft". |
buttons | list of str, optional | The buttons, of "undo", "redo", "reset", "zoom" and "save". |
size | float, optional | Size of the icons in pixels. |
color, hover_color | str, optional | Colours of the icons. |
tooltip_background, tooltip_color, tooltip_border | str, optional | Style of the tooltips and the save menu. |
tooltip_radius | float or str, optional | Corner radius of the tooltips. |
tooltip_shadow | str, optional | CSS box shadow of the tooltips. |
font_family | str, optional | Font of the tooltips. |
icons | dict, optional | Font Awesome icons by button, e.g. {"reset": "arrows-to-circle"}. |
Value
GC: The chart.
