Skip to content

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 ​

ArgumentTypeDescription
showstr, optional"hover", "always" or "never".
positionstr, optional"topright", "topleft", "bottomright" or "bottomleft".
buttonslist of str, optionalThe buttons, of "undo", "redo", "reset", "zoom" and "save".
sizefloat, optionalSize of the icons in pixels.
color, hover_colorstr, optionalColours of the icons.
tooltip_background, tooltip_color, tooltip_borderstr, optionalStyle of the tooltips and the save menu.
tooltip_radiusfloat or str, optionalCorner radius of the tooltips.
tooltip_shadowstr, optionalCSS box shadow of the tooltips.
font_familystr, optionalFont of the tooltips.
iconsdict, optionalFont Awesome icons by button, e.g. {"reset": "arrows-to-circle"}.

Value ​

GC: The chart.