Class TreemapChartSpec
A Treemap chart.
Implements
Inherited Members
Namespace: Google.Apis.Sheets.v4.Data
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class TreemapChartSpec : IDirectResponseSchema
Properties
ColorData
The data that determines the background color of each treemap data cell. This field is optional. If not specified, size_data is used to determine background colors. If specified, the data is expected to be numeric. color_scale will determine how the values in this data map to data cell background colors.
Declaration
[JsonProperty("colorData")]
public virtual ChartData ColorData { get; set; }
Property Value
Type | Description |
---|---|
ChartData |
ColorScale
The color scale for data cells in the treemap chart. Data cells are assigned colors based on their color values. These color values come from color_data, or from size_data if color_data is not specified. Cells with color values less than or equal to min_value will have minValueColor as their background color. Cells with color values greater than or equal to max_value will have maxValueColor as their background color. Cells with color values between min_value and max_value will have background colors on a gradient between minValueColor and maxValueColor, the midpoint of the gradient being midValueColor. Cells with missing or non-numeric color values will have noDataColor as their background color.
Declaration
[JsonProperty("colorScale")]
public virtual TreemapChartColorScale ColorScale { get; set; }
Property Value
Type | Description |
---|---|
TreemapChartColorScale |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
HeaderColor
The background color for header cells. Deprecated: Use header_color_style.
Declaration
[JsonProperty("headerColor")]
public virtual Color HeaderColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
HeaderColorStyle
The background color for header cells. If header_color is also set, this field takes precedence.
Declaration
[JsonProperty("headerColorStyle")]
public virtual ColorStyle HeaderColorStyle { get; set; }
Property Value
Type | Description |
---|---|
ColorStyle |
HideTooltips
True to hide tooltips.
Declaration
[JsonProperty("hideTooltips")]
public virtual bool? HideTooltips { get; set; }
Property Value
Type | Description |
---|---|
bool? |
HintedLevels
The number of additional data levels beyond the labeled levels to be shown on the treemap chart. These levels are not interactive and are shown without their labels. Defaults to 0 if not specified.
Declaration
[JsonProperty("hintedLevels")]
public virtual int? HintedLevels { get; set; }
Property Value
Type | Description |
---|---|
int? |
Labels
The data that contains the treemap cell labels.
Declaration
[JsonProperty("labels")]
public virtual ChartData Labels { get; set; }
Property Value
Type | Description |
---|---|
ChartData |
Levels
The number of data levels to show on the treemap chart. These levels are interactive and are shown with their labels. Defaults to 2 if not specified.
Declaration
[JsonProperty("levels")]
public virtual int? Levels { get; set; }
Property Value
Type | Description |
---|---|
int? |
MaxValue
The maximum possible data value. Cells with values greater than this will have the same color as cells with this value. If not specified, defaults to the actual maximum value from color_data, or the maximum value from size_data if color_data is not specified.
Declaration
[JsonProperty("maxValue")]
public virtual double? MaxValue { get; set; }
Property Value
Type | Description |
---|---|
double? |
MinValue
The minimum possible data value. Cells with values less than this will have the same color as cells with this value. If not specified, defaults to the actual minimum value from color_data, or the minimum value from size_data if color_data is not specified.
Declaration
[JsonProperty("minValue")]
public virtual double? MinValue { get; set; }
Property Value
Type | Description |
---|---|
double? |
ParentLabels
The data the contains the treemap cells' parent labels.
Declaration
[JsonProperty("parentLabels")]
public virtual ChartData ParentLabels { get; set; }
Property Value
Type | Description |
---|---|
ChartData |
SizeData
The data that determines the size of each treemap data cell. This data is expected to be numeric. The cells corresponding to non-numeric or missing data will not be rendered. If color_data is not specified, this data is used to determine data cell background colors as well.
Declaration
[JsonProperty("sizeData")]
public virtual ChartData SizeData { get; set; }
Property Value
Type | Description |
---|---|
ChartData |
TextFormat
The text format for all labels on the chart. The link field is not supported.
Declaration
[JsonProperty("textFormat")]
public virtual TextFormat TextFormat { get; set; }
Property Value
Type | Description |
---|---|
TextFormat |