Skip to content

GC.zoom() ​

Add a zoom slider below the clusters.

Usage ​

python
chart.zoom(
    show,
    range,
    mode,
    min,
    update,
    height,
    overview,
    color,
    style,
    window_style,
    handle_style,
)

An argument shown without a default is optional too: left out, the chart keeps its default.

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
showboolWhether to show the slider. Default True.
rangelist of float, optionalThe window shown first: shares of the clusters, e.g. [0.25, 0.5], or base pairs with mode="absolute".
modestr, optional"relative" (default): the same share of every cluster; "absolute": the same base pairs.
minfloat, optionalThe narrowest window.
updatestr, optional"live" or "release": draw while dragging, or when let go.
heightfloat, optionalHeight of the slider in pixels.
overviewbool, optionalWhether the slider shows the genes of each cluster.
colorstr, optionalColour of the slider.
style, window_style, handle_styledict, optionalCSS styles of the slider, its window and its handles.

Value ​

GC: The chart.