Skip to content

GC.grid() ​

Set the layout of the clusters: margins, width and height.

Usage ​

python
chart.grid(margin, width, height, direction, cluster)

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

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
margindict, optionalMargins, e.g. {"left": 50, "top": "10%"}. Top and bottom margins of the whole chart are padding of the chart.
widthstr or float, optionalWidth of the chart (without cluster) or of the clusters: a number of pixels, e.g. 600, or a string such as "80%" or "600px".
heightstr or float, optionalHeight of the clusters, e.g. "30%" or 100.
directionstr"column" or "row". Default "column".
clusterint, str or list, optionalThe clusters, by number (from 1) or name. Default: the whole chart.

Value ​

GC: The chart.