plot_treemap
The plot_treemap method creates treemap charts using data from Deephaven tables.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| series_name | str | The name (as a String) to identify the series on the plot itself. |
| t | Union[Table, SelectableDataSet] | The table (or other selectable data set) that holds the data to be plotted. |
| id | str | The name of the column containing ID values. |
| parent | str | The name of the column containing parent ID values. |
| label optional | str | The name of the column containing labels. If not provided, labels default to the ID value. |
| value optional | str | The name of the column containing values for how large each section in relation to other sections. |
| hover_text optional | str | The name of the column containing hover text shown when hovering over a section in the treemap. |
| color optional | str | The name of the column containing hexadecimal color to use for each section. |
Returns
A treemap chart.
Examples
The following example plots data from a Deephaven table.
In the following example, plot_treemap is used to plot data from a Deephaven table, including the optional label, value, hover_text, and color parameters.