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
| Argument | Type | Description |
|---|---|---|
margin | dict, optional | Margins, e.g. {"left": 50, "top": "10%"}. Top and bottom margins of the whole chart are padding of the chart. |
width | str or float, optional | Width of the chart (without cluster) or of the clusters: a number of pixels, e.g. 600, or a string such as "80%" or "600px". |
height | str or float, optional | Height of the clusters, e.g. "30%" or 100. |
direction | str | "column" or "row". Default "column". |
cluster | int, str or list, optional | The clusters, by number (from 1) or name. Default: the whole chart. |
Value
GC: The chart.
