EmbeddedChart
A chart embedded in a sheet.
JSON representation |
---|
{ "chartId": integer, "spec": { object ( |
Fields | |
---|---|
chartId
|
The ID of the chart. |
spec
|
The specification of the chart. |
position
|
The position of the chart. |
border
|
The border of the chart. |
ChartSpec
The specifications of a chart.
JSON representation |
---|
{ "title": string, "altText": string, "titleTextFormat": { object ( |
Fields | |
---|---|
title
|
The title of the chart. |
altText
|
The alternative text that describes the chart. This is often used for accessibility. |
titleTextFormat
|
The title text format. Strikethrough, underline, and link are not supported. |
titleTextPosition
|
The title text position. This field is optional. |
subtitle
|
The subtitle of the chart. |
subtitleTextFormat
|
The subtitle text format. Strikethrough, underline, and link are not supported. |
subtitleTextPosition
|
The subtitle text position. This field is optional. |
fontName
|
The name of the font to use by default for all chart text (e.g. title, axis labels, legend). If a font is specified for a specific part of the chart it will override this font name. |
maximized
|
True to make a chart fill the entire space in which it's rendered with minimum padding. False to use the default padding. (Not applicable to Geo and Org charts.) |
backgroundColor
|
The background color of the entire chart. Not applicable to Org charts. Deprecated: Use
|
backgroundColorStyle
|
The background color of the entire chart. Not applicable to Org charts. If
|
dataSourceChartProperties
|
If present, the field contains data source chart specific properties. |
filterSpecs[]
|
The filters applied to the source data of the chart. Only supported for data source charts. |
sortSpecs[]
|
The order to sort the chart data by. Only a single sort spec is supported. Only supported for data source charts. |
Union field
chart . The specific chart specification, exactly one value must be set.
chart
can be only one of the following:
|
|
basicChart
|
A basic chart specification, can be one of many kinds of charts. See
|
pieChart
|
A pie chart specification. |
bubbleChart
|
A bubble chart specification. |
candlestickChart
|
A candlestick chart specification. |
orgChart
|
An org chart specification. |
histogramChart
|
A histogram chart specification. |
waterfallChart
|
A waterfall chart specification. |
treemapChart
|
A treemap chart specification. |
scorecardChart
|
A scorecard chart specification. |
TextPosition
Position settings for text.
JSON representation |
---|
{
"horizontalAlignment": enum ( |
Fields | |
---|---|
horizontalAlignment
|
Horizontal alignment setting for the piece of text. |
DataSourceChartProperties
Properties of a data source chart.
JSON representation |
---|
{
"dataSourceId": string,
"dataExecutionStatus": {
object ( |
Fields | |
---|---|
dataSourceId
|
ID of the data source that the chart is associated with. |
dataExecutionStatus
|
Output only. The data execution status. |
BasicChartSpec
The specification for a basic chart. See
BasicChartType
for the list of charts this supports.
JSON representation |
---|
{ "chartType": enum ( |
Fields | |
---|---|
chartType
|
The type of the chart. |
legendPosition
|
The position of the chart legend. |
axis[]
|
The axis on the chart. |
domains[]
|
The domain of data this is charting. Only a single domain is supported. |
series[]
|
The data this chart is visualizing. |
headerCount
|
The number of rows or columns in the data that are "headers". If not set, Google Sheets will guess how many rows are headers based on the data.
(Note that
|
threeDimensional
|
True to make the chart 3D. Applies to Bar and Column charts. |
interpolateNulls
|
If some values in a series are missing, gaps may appear in the chart (e.g, segments of lines in a line chart will be missing). To eliminate these gaps set this to true. Applies to Line, Area, and Combo charts. |
stackedType
|
The stacked type for charts that support vertical stacking. Applies to Area, Bar, Column, Combo, and Stepped Area charts. |
lineSmoothing
|
Gets whether all lines should be rendered smooth or straight by default. Applies to Line charts. |
compareMode
|
The behavior of tooltips and data highlighting when hovering on data and chart area. |
totalDataLabel
|
Controls whether to display additional data labels on stacked charts which sum the total value of all stacked values at each value along the domain axis. These data labels can only be set when
|
BasicChartType
How the chart should be visualized.
Enums | |
---|---|
BASIC_CHART_TYPE_UNSPECIFIED
|
Default value, do not use. |
BAR
|
A bar chart. |
LINE
|
A line chart. |
AREA
|
An area chart. |
COLUMN
|
A column chart. |
SCATTER
|
A scatter chart. |
COMBO
|
A combo chart. |
STEPPED_AREA
|
A stepped area chart. |
BasicChartLegendPosition
Where the legend of the chart should be positioned.
Enums | |
---|---|
BASIC_CHART_LEGEND_POSITION_UNSPECIFIED
|
Default value, do not use. |
BOTTOM_LEGEND
|
The legend is rendered on the bottom of the chart. |
LEFT_LEGEND
|
The legend is rendered on the left of the chart. |
RIGHT_LEGEND
|
The legend is rendered on the right of the chart. |
TOP_LEGEND
|
The legend is rendered on the top of the chart. |
NO_LEGEND
|
No legend is rendered. |
BasicChartAxis
An axis of the chart. A chart may not have more than one axis per
axis position
.
JSON representation |
---|
{ "position": enum ( |
Fields | |
---|---|
position
|
The position of this axis. |
title
|
The title of this axis. If set, this overrides any title inferred from headers of the data. |
format
|
The format of the title. Only valid if the axis is not associated with the domain. The link field is not supported. |
titleTextPosition
|
The axis title text position. |
viewWindowOptions
|
The view window options for this axis. |
BasicChartAxisPosition
The position of a chart axis.
Enums | |
---|---|
BASIC_CHART_AXIS_POSITION_UNSPECIFIED
|
Default value, do not use. |
BOTTOM_AXIS
|
The axis rendered at the bottom of a chart. For most charts, this is the standard major axis. For bar charts, this is a minor axis. |
LEFT_AXIS
|
The axis rendered at the left of a chart. For most charts, this is a minor axis. For bar charts, this is the standard major axis. |
RIGHT_AXIS
|
The axis rendered at the right of a chart. For most charts, this is a minor axis. For bar charts, this is an unusual major axis. |
ChartAxisViewWindowOptions
The options that define a "view window" for a chart (such as the visible values in an axis).
JSON representation |
---|
{
"viewWindowMin": number,
"viewWindowMax": number,
"viewWindowMode": enum ( |
Fields | |
---|---|
viewWindowMin
|
The minimum numeric value to be shown in this view window. If unset, will automatically determine a minimum value that looks good for the data. |
viewWindowMax
|
The maximum numeric value to be shown in this view window. If unset, will automatically determine a maximum value that looks good for the data. |
viewWindowMode
|
The view window's mode. |
ViewWindowMode
The view window's mode. It defines how to treat the min and max of the view window.
Enums | |
---|---|
DEFAULT_VIEW_WINDOW_MODE
|
The default view window mode used in the Sheets editor for this chart type. In most cases, if set, the default mode is equivalent to
PRETTY .
|
VIEW_WINDOW_MODE_UNSUPPORTED
|
Do not use. Represents that the currently set mode is not supported by the API. |
EXPLICIT
|
Follows the min and max exactly if specified. If a value is unspecified, it will fall back to the
PRETTY
value.
|
PRETTY
|
Chooses a min and max that make the chart look good. Both min and max are ignored in this mode. |
BasicChartDomain
The domain of a chart. For example, if charting stock prices over time, this would be the date.
JSON representation |
---|
{
"domain": {
object ( |
Fields | |
---|---|
domain
|
The data of the domain. For example, if charting stock prices over time, this is the data representing the dates. |
reversed
|
True to reverse the order of the domain values (horizontal axis). |
ChartData
The data included in a domain or series.
JSON representation |
---|
{ "groupRule": { object ( |
Fields | |
---|---|
groupRule
|
The rule to group the data by if the ChartData backs the domain of a data source chart. Only supported for data source charts. |
aggregateType
|
The aggregation type for the series of a data source chart. Only supported for data source charts. |
Union field
type . The type of data included, exactly one value must be set.
type
can be only one of the following:
|
|
sourceRange
|
The source ranges of the data. |
columnReference
|
The reference to the data source column that the data reads from. |
ChartSourceRange
Source ranges for a chart.
JSON representation |
---|
{
"sources": [
{
object ( |
Fields | |
---|---|
sources[]
|
The ranges of data for a series or domain. Exactly one dimension must have a length of 1, and all sources in the list must have the same dimension with length 1. The domain (if it exists) & all series must have the same number of source ranges. If using more than one source range, then the source range at a given offset must be in order and contiguous across the domain and series. For example, these are valid configurations:
|
ChartGroupRule
An optional setting on the
ChartData
of the domain of a data source chart that defines buckets for the values in the domain rather than breaking out each individual value.
For example, when plotting a data source chart, you can specify a histogram rule on the domain (it should only contain numeric values), grouping its values into buckets. Any values of a chart series that fall into the same bucket are aggregated based on the
aggregateType
.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
rule . The rule to apply to the
ChartData .
rule
can be only one of the following:
|
|
dateTimeRule
|
|
histogramRule
|
|
ChartDateTimeRule
Allows you to organize the date-time values in a source data column into buckets based on selected parts of their date or time values.
JSON representation |
---|
{
"type": enum ( |
Fields | |
---|---|
type
|
The type of date-time grouping to apply. |
ChartDateTimeRuleType
The available types of date-time grouping rules.
Enums | |
---|---|
CHART_DATE_TIME_RULE_TYPE_UNSPECIFIED
|
The default type, do not use. |
SECOND
|
Group dates by second, from 0 to 59. |
MINUTE
|
Group dates by minute, from 0 to 59. |
HOUR
|
Group dates by hour using a 24-hour system, from 0 to 23. |
HOUR_MINUTE
|
Group dates by hour and minute using a 24-hour system, for example 19:45. |
HOUR_MINUTE_AMPM
|
Group dates by hour and minute using a 12-hour system, for example 7:45 PM. The AM/PM designation is translated based on the spreadsheet locale. |
DAY_OF_WEEK
|
Group dates by day of week, for example Sunday. The days of the week will be translated based on the spreadsheet locale. |
DAY_OF_YEAR
|
Group dates by day of year, from 1 to 366. Note that dates after Feb. 29 fall in different buckets in leap years than in non-leap years. |
DAY_OF_MONTH
|
Group dates by day of month, from 1 to 31. |
DAY_MONTH
|
Group dates by day and month, for example 22-Nov. The month is translated based on the spreadsheet locale. |
MONTH
|
Group dates by month, for example Nov. The month is translated based on the spreadsheet locale. |
QUARTER
|
Group dates by quarter, for example Q1 (which represents Jan-Mar). |
YEAR
|
Group dates by year, for example 2008. |
YEAR_MONTH
|
Group dates by year and month, for example 2008-Nov. The month is translated based on the spreadsheet locale. |
YEAR_QUARTER
|
Group dates by year and quarter, for example 2008 Q4. |
YEAR_MONTH_DAY
|
Group dates by year, month, and day, for example 2008-11-22. |
ChartHistogramRule
Allows you to organize numeric values in a source data column into buckets of constant size.
JSON representation |
---|
{ "minValue": number, "maxValue": number, "intervalSize": number } |
Fields | |
---|---|
minValue
|
The minimum value at which items are placed into buckets. Values that are less than the minimum are grouped into a single bucket. If omitted, it is determined by the minimum item value. |
maxValue
|
The maximum value at which items are placed into buckets. Values greater than the maximum are grouped into a single bucket. If omitted, it is determined by the maximum item value. |
intervalSize
|
The size of the buckets that are created. Must be positive. |
ChartAggregateType
The type of aggregation for chart series.
Enums | |
---|---|
CHART_AGGREGATE_TYPE_UNSPECIFIED
|
Default value, do not use. |
AVERAGE
|
Average aggregate function. |
COUNT
|
Count aggregate function. |
MAX
|
Maximum aggregate function. |
MEDIAN
|
Median aggregate function. |
MIN
|
Minimum aggregate function. |
SUM
|
Sum aggregate function. |
BasicChartSeries
A single series of data in a chart. For example, if charting stock prices over time, multiple series may exist, one for the "Open Price", "High Price", "Low Price" and "Close Price".
JSON representation |
---|
{ "series": { object ( |
Fields | |
---|---|
series
|
The data being visualized in this chart series. |
targetAxis
|
The minor axis that will specify the range of values for this series. For example, if charting stocks over time, the "Volume" series may want to be pinned to the right with the prices pinned to the left, because the scale of trading volume is different than the scale of prices. It is an error to specify an axis that isn't a valid minor axis for the chart's
|
type
|
The type of this series. Valid only if the
|
lineStyle
|
The line style of this series. Valid only if the
|
dataLabel
|
Information about the data labels for this series. |
color
|
The color for elements (such as bars, lines, and points) associated with this series. If empty, a default color is used. Deprecated: Use
|
colorStyle
|
The color for elements (such as bars, lines, and points) associated with this series. If empty, a default color is used. If
|
pointStyle
|
The style for points associated with this series. Valid only if the
|
styleOverrides[]
|
Style override settings for series data points. |
LineStyle
Properties that describe the style of a line.
JSON representation |
---|
{
"width": integer,
"type": enum ( |
Fields | |
---|---|
width
|
The thickness of the line, in px. |
type
|
The dash type of the line. |
LineDashType
The dash type of a line.
Enums | |
---|---|
LINE_DASH_TYPE_UNSPECIFIED
|
Default value, do not use. |
INVISIBLE
|
No dash type, which is equivalent to a non-visible line. |
CUSTOM
|
A custom dash for a line. Modifying the exact custom dash style is currently unsupported. |
SOLID
|
A solid line. |
DOTTED
|
A dotted line. |
MEDIUM_DASHED
|
A dashed line where the dashes have "medium" length. |
MEDIUM_DASHED_DOTTED
|
A line that alternates between a "medium" dash and a dot. |
LONG_DASHED
|
A dashed line where the dashes have "long" length. |
LONG_DASHED_DOTTED
|
A line that alternates between a "long" dash and a dot. |
DataLabel
Settings for one set of data labels. Data labels are annotations that appear next to a set of data, such as the points on a line chart, and provide additional information about what the data represents, such as a text representation of the value behind that point on the graph.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type
|
The type of the data label. |
textFormat
|
The text format used for the data label. The link field is not supported. |
placement
|
The placement of the data label relative to the labeled data. |
customLabelData
|
Data to use for custom labels. Only used if
|
DataLabelType
The type of a data label.
Enums | |
---|---|
DATA_LABEL_TYPE_UNSPECIFIED
|
The data label type is not specified and will be interpreted depending on the context of the data label within the chart. |
NONE
|
The data label is not displayed. |
DATA
|
The data label is displayed using values from the series data. |
CUSTOM
|
The data label is displayed using values from a custom data source indicated by
customLabelData .
|
DataLabelPlacement
The placement of a data label relative to the labeled data.
Enums | |
---|---|
DATA_LABEL_PLACEMENT_UNSPECIFIED
|
The positioning is determined automatically by the renderer. |
CENTER
|
Center within a bar or column, both horizontally and vertically. |
LEFT
|
To the left of a data point. |
RIGHT
|
To the right of a data point. |
ABOVE
|
Above a data point. |
BELOW
|
Below a data point. |
INSIDE_END
|
Inside a bar or column at the end (top if positive, bottom if negative). |
INSIDE_BASE
|
Inside a bar or column at the base. |
OUTSIDE_END
|
Outside a bar or column at the end. |
PointStyle
The style of a point on the chart.
JSON representation |
---|
{
"size": number,
"shape": enum ( |
Fields | |
---|---|
size
|
The point size. If empty, a default size is used. |
shape
|
The point shape. If empty or unspecified, a default shape is used. |
PointShape
The shape of a point.
Enums | |
---|---|
POINT_SHAPE_UNSPECIFIED
|
Default value. |
CIRCLE
|
A circle shape. |
DIAMOND
|
A diamond shape. |
HEXAGON
|
A hexagon shape. |
PENTAGON
|
A pentagon shape. |
SQUARE
|
A square shape. |
STAR
|
A star shape. |
TRIANGLE
|
A triangle shape. |
X_MARK
|
An x-mark shape. |
BasicSeriesDataPointStyleOverride
Style override settings for a single series data point.
JSON representation |
---|
{ "index": integer, "color": { object ( |
Fields | |
---|---|
index
|
The zero-based index of the series data point. |
color
|
Color of the series data point. If empty, the series default is used. Deprecated: Use
|
colorStyle
|
Color of the series data point. If empty, the series default is used. If
|
pointStyle
|
Point style of the series data point. Valid only if the
|
BasicChartStackedType
When charts are stacked, range (vertical axis) values are rendered on top of one another rather than from the horizontal axis. For example, the two values 20 and 80 would be drawn from 0, with 80 being 80 units away from the horizontal axis. If they were stacked, 80 would be rendered from 20, putting it 100 units away from the horizontal axis.
Enums | |
---|---|
BASIC_CHART_STACKED_TYPE_UNSPECIFIED
|
Default value, do not use. |
NOT_STACKED
|
Series are not stacked. |
STACKED
|
Series values are stacked, each value is rendered vertically beginning from the top of the value below it. |
PERCENT_STACKED
|
Vertical stacks are stretched to reach the top of the chart, with values laid out as percentages of each other. |
BasicChartCompareMode
The compare mode type, which describes the behavior of tooltips and data highlighting when hovering on data and chart area.
Enums | |
---|---|
BASIC_CHART_COMPARE_MODE_UNSPECIFIED
|
Default value, do not use. |
DATUM
|
Only the focused data element is highlighted and shown in the tooltip. |
CATEGORY
|
All data elements with the same category (e.g., domain value) are highlighted and shown in the tooltip. |
PieChartSpec
A pie chart.
JSON representation |
---|
{ "legendPosition": enum ( |
Fields | |
---|---|
legendPosition
|
Where the legend of the pie chart should be drawn. |
domain
|
The data that covers the domain of the pie chart. |
series
|
The data that covers the one and only series of the pie chart. |
threeDimensional
|
True if the pie is three dimensional. |
pieHole
|
The size of the hole in the pie chart. |
PieChartLegendPosition
Where the legend of the chart should be positioned.
Enums | |
---|---|
PIE_CHART_LEGEND_POSITION_UNSPECIFIED
|
Default value, do not use. |
BOTTOM_LEGEND
|
The legend is rendered on the bottom of the chart. |
LEFT_LEGEND
|
The legend is rendered on the left of the chart. |
RIGHT_LEGEND
|
The legend is rendered on the right of the chart. |
TOP_LEGEND
|
The legend is rendered on the top of the chart. |
NO_LEGEND
|
No legend is rendered. |
LABELED_LEGEND
|
Each pie slice has a label attached to it. |
BubbleChartSpec
A bubble chart.
JSON representation |
---|
{ "legendPosition": enum ( |
Fields | |
---|---|
legendPosition
|
Where the legend of the chart should be drawn. |
bubbleLabels
|
The data containing the bubble labels. These do not need to be unique. |
domain
|
The data containing the bubble x-values. These values locate the bubbles in the chart horizontally. |
series
|
The data containing the bubble y-values. These values locate the bubbles in the chart vertically. |
groupIds
|
The data containing the bubble group IDs. All bubbles with the same group ID are drawn in the same color. If
|
bubbleSizes
|
The data containing the bubble sizes. Bubble sizes are used to draw the bubbles at different sizes relative to each other. If specified,
|
bubbleOpacity
|
The opacity of the bubbles between 0 and 1.0. 0 is fully transparent and 1 is fully opaque. |
bubbleBorderColor
|
The bubble border color. Deprecated: Use
|
bubbleBorderColorStyle
|
The bubble border color. If
|
bubbleMaxRadiusSize
|
The max radius size of the bubbles, in pixels. If specified, the field must be a positive value. |
bubbleMinRadiusSize
|
The minimum radius size of the bubbles, in pixels. If specific, the field must be a positive value. |
bubbleTextStyle
|
The format of the text inside the bubbles. Strikethrough, underline, and link are not supported. |
BubbleChartLegendPosition
Where the legend of the chart should be positioned.
Enums | |
---|---|
BUBBLE_CHART_LEGEND_POSITION_UNSPECIFIED
|
Default value, do not use. |
BOTTOM_LEGEND
|
The legend is rendered on the bottom of the chart. |
LEFT_LEGEND
|
The legend is rendered on the left of the chart. |
RIGHT_LEGEND
|
The legend is rendered on the right of the chart. |
TOP_LEGEND
|
The legend is rendered on the top of the chart. |
NO_LEGEND
|
No legend is rendered. |
INSIDE_LEGEND
|
The legend is rendered inside the chart area. |
CandlestickChartSpec
JSON representation |
---|
{ "domain": { object ( |
Fields | |
---|---|
domain
|
The domain data (horizontal axis) for the candlestick chart. String data will be treated as discrete labels, other data will be treated as continuous values. |
data[]
|
The Candlestick chart data. Only one CandlestickData is supported. |
CandlestickDomain
The domain of a CandlestickChart.
JSON representation |
---|
{
"data": {
object ( |
Fields | |
---|---|
data
|
The data of the CandlestickDomain. |
reversed
|
True to reverse the order of the domain values (horizontal axis). |
CandlestickData
The Candlestick chart data, each containing the low, open, close, and high values for a series.
JSON representation |
---|
{ "lowSeries": { object ( |
Fields | |
---|---|
lowSeries
|
The range data (vertical axis) for the low/minimum value for each candle. This is the bottom of the candle's center line. |
openSeries
|
The range data (vertical axis) for the open/initial value for each candle. This is the bottom of the candle body. If less than the close value the candle will be filled. Otherwise the candle will be hollow. |
closeSeries
|
The range data (vertical axis) for the close/final value for each candle. This is the top of the candle body. If greater than the open value the candle will be filled. Otherwise the candle will be hollow. |
highSeries
|
The range data (vertical axis) for the high/maximum value for each candle. This is the top of the candle's center line. |
CandlestickSeries
The series of a CandlestickData.
JSON representation |
---|
{
"data": {
object ( |
Fields | |
---|---|
data
|
The data of the CandlestickSeries. |
OrgChartSpec
An
org chart. Org charts require a unique set of labels in
labels
and may optionally include
parentLabels
and
tooltips
.
parentLabels
contain, for each node, the label identifying the parent node.
tooltips
contain, for each node, an optional tooltip.
For example, to describe an OrgChart with Alice as the CEO, Bob as the President (reporting to Alice) and Cathy as VP of Sales (also reporting to Alice), have
labels
contain "Alice", "Bob", "Cathy",
parentLabels
contain "", "Alice", "Alice" and
tooltips
contain "CEO", "President", "VP Sales".
JSON representation |
---|
{ "nodeSize": enum ( |
Fields | |
---|---|
nodeSize
|
The size of the org chart nodes. |
nodeColor
|
The color of the org chart nodes. Deprecated: Use
|
nodeColorStyle
|
The color of the org chart nodes. If
|
selectedNodeColor
|
The color of the selected org chart nodes. Deprecated: Use
|
selectedNodeColorStyle
|
The color of the selected org chart nodes. If
|
labels
|
The data containing the labels for all the nodes in the chart. Labels must be unique. |
parentLabels
|
The data containing the label of the parent for the corresponding node. A blank value indicates that the node has no parent and is a top-level node. This field is optional. |
tooltips
|
The data containing the tooltip for the corresponding node. A blank value results in no tooltip being displayed for the node. This field is optional. |
OrgChartNodeSize
The size of the org chart nodes.
Enums | |
---|---|
ORG_CHART_LABEL_SIZE_UNSPECIFIED
|
Default value, do not use. |
SMALL
|
The small org chart node size. |
MEDIUM
|
The medium org chart node size. |
LARGE
|
The large org chart node size. |
HistogramChartSpec
A histogram chart. A histogram chart groups data items into bins, displaying each bin as a column of stacked items. Histograms are used to display the distribution of a dataset. Each column of items represents a range into which those items fall. The number of bins can be chosen automatically or specified explicitly.
JSON representation |
---|
{ "series": [ { object ( |
Fields | |
---|---|
series[]
|
The series for a histogram may be either a single series of values to be bucketed or multiple series, each of the same length, containing the name of the series followed by the values to be bucketed for that series. |
legendPosition
|
The position of the chart legend. |
showItemDividers
|
Whether horizontal divider lines should be displayed between items in each column. |
bucketSize
|
By default the bucket size (the range of values stacked in a single column) is chosen automatically, but it may be overridden here. E.g., A bucket size of 1.5 results in buckets from 0 - 1.5, 1.5 - 3.0, etc. Cannot be negative. This field is optional. |
outlierPercentile
|
The outlier percentile is used to ensure that outliers do not adversely affect the calculation of bucket sizes. For example, setting an outlier percentile of 0.05 indicates that the top and bottom 5% of values when calculating buckets. The values are still included in the chart, they will be added to the first or last buckets instead of their own buckets. Must be between 0.0 and 0.5. |
HistogramSeries
A histogram series containing the series color and data.
JSON representation |
---|
{ "barColor": { object ( |
Fields | |
---|---|
barColor
|
The color of the column representing this series in each bucket. This field is optional. Deprecated: Use
|
barColorStyle
|
The color of the column representing this series in each bucket. This field is optional. If
|
data
|
The data for this histogram series. |
HistogramChartLegendPosition
Where the legend of the chart should be positioned.
Enums | |
---|---|
HISTOGRAM_CHART_LEGEND_POSITION_UNSPECIFIED
|
Default value, do not use. |
BOTTOM_LEGEND
|
The legend is rendered on the bottom of the chart. |
LEFT_LEGEND
|
The legend is rendered on the left of the chart. |
RIGHT_LEGEND
|
The legend is rendered on the right of the chart. |
TOP_LEGEND
|
The legend is rendered on the top of the chart. |
NO_LEGEND
|
No legend is rendered. |
INSIDE_LEGEND
|
The legend is rendered inside the chart area. |
WaterfallChartSpec
A waterfall chart.
JSON representation |
---|
{ "domain": { object ( |
Fields | |
---|---|
domain
|
The domain data (horizontal axis) for the waterfall chart. |
series[]
|
The data this waterfall chart is visualizing. |
stackedType
|
The stacked type. |
firstValueIsTotal
|
True to interpret the first value as a total. |
hideConnectorLines
|
True to hide connector lines between columns. |
connectorLineStyle
|
The line style for the connector lines. |
totalDataLabel
|
Controls whether to display additional data labels on stacked charts which sum the total value of all stacked values at each value along the domain axis.
|
WaterfallChartDomain
The domain of a waterfall chart.
JSON representation |
---|
{
"data": {
object ( |
Fields | |
---|---|
data
|
The data of the WaterfallChartDomain. |
reversed
|
True to reverse the order of the domain values (horizontal axis). |
WaterfallChartSeries
A single series of data for a waterfall chart.
JSON representation |
---|
{ "data": { object ( |
Fields | |
---|---|
data
|
The data being visualized in this series. |
positiveColumnsStyle
|
Styles for all columns in this series with positive values. |
negativeColumnsStyle
|
Styles for all columns in this series with negative values. |
subtotalColumnsStyle
|
Styles for all subtotal columns in this series. |
hideTrailingSubtotal
|
True to hide the subtotal column from the end of the series. By default, a subtotal column will appear at the end of each series. Setting this field to true will hide that subtotal column for this series. |
customSubtotals[]
|
Custom subtotal columns appearing in this series. The order in which subtotals are defined is not significant. Only one subtotal may be defined for each data point. |
dataLabel
|
Information about the data labels for this series. |
WaterfallChartColumnStyle
Styles for a waterfall chart column.
JSON representation |
---|
{ "label": string, "color": { object ( |
Fields | |
---|---|
label
|
The label of the column's legend. |
color
|
The color of the column. Deprecated: Use
|
colorStyle
|
The color of the column. If
|
WaterfallChartCustomSubtotal
A custom subtotal column for a waterfall chart series.
JSON representation |
---|
{ "subtotalIndex": integer, "label": string, "dataIsSubtotal": boolean } |
Fields | |
---|---|
subtotalIndex
|
The zero-based index of a data point within the series. If
|
label
|
A label for the subtotal column. |
dataIsSubtotal
|
True if the data point at
|
WaterfallChartStackedType
Stacked type options for waterfall charts.
Enums | |
---|---|
WATERFALL_STACKED_TYPE_UNSPECIFIED
|
Default value, do not use. |
STACKED
|
Values corresponding to the same domain (horizontal axis) value will be stacked vertically. |
SEQUENTIAL
|
Series will spread out along the horizontal axis. |
TreemapChartSpec
JSON representation |
---|
{ "labels": { object ( |
Fields | |
---|---|
labels
|
The data that contains the treemap cell labels. |
parentLabels
|
The data the contains the treemap cells' parent labels. |
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
|
colorData
|
The data that determines the background color of each treemap data cell. This field is optional. If not specified,
|
textFormat
|
The text format for all labels on the chart. The link field is not supported. |
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. |
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. |
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
|
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
|
headerColor
|
The background color for header cells. Deprecated: Use
|
headerColorStyle
|
The background color for header cells. If
|
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
|
hideTooltips
|
True to hide tooltips. |
TreemapChartColorScale
A color scale for a treemap chart.
JSON representation |
---|
{ "minValueColor": { object ( |
Fields | |
---|---|
minValueColor
|
The background color for cells with a color value less than or equal to
|
minValueColorStyle
|
The background color for cells with a color value less than or equal to
|
midValueColor
|
The background color for cells with a color value at the midpoint between
|
midValueColorStyle
|
The background color for cells with a color value at the midpoint between
|
maxValueColor
|
The background color for cells with a color value greater than or equal to
|
maxValueColorStyle
|
The background color for cells with a color value greater than or equal to
|
noDataColor
|
The background color for cells that have no color data associated with them. Defaults to #000000 if not specified. Deprecated: Use
|
noDataColorStyle
|
The background color for cells that have no color data associated with them. Defaults to #000000 if not specified. If
|
ScorecardChartSpec
A scorecard chart. Scorecard charts are used to highlight key performance indicators, known as KPIs, on the spreadsheet. A scorecard chart can represent things like total sales, average cost, or a top selling item. You can specify a single data value, or aggregate over a range of data. Percentage or absolute difference from a baseline value can be highlighted, like changes over time.
JSON representation |
---|
{ "keyValueData": { object ( |
Fields | |
---|---|
keyValueData
|
The data for scorecard key value. |
baselineValueData
|
The data for scorecard baseline value. This field is optional. |
aggregateType
|
The aggregation type for key and baseline chart data in scorecard chart. This field is not supported for data source charts. Use the
|
keyValueFormat
|
Formatting options for key value. |
baselineValueFormat
|
Formatting options for baseline value. This field is needed only if
|
scaleFactor
|
Value to scale scorecard key and baseline value. For example, a factor of 10 can be used to divide all values in the chart by 10. This field is optional. |
numberFormatSource
|
The number format source used in the scorecard chart. This field is optional. |
customFormatOptions
|
Custom formatting options for numeric key/baseline values in scorecard chart. This field is used only when
|
KeyValueFormat
Formatting options for key value.
JSON representation |
---|
{ "textFormat": { object ( |
Fields | |
---|---|
textFormat
|
Text formatting options for key value. The link field is not supported. |
position
|
Specifies the horizontal text positioning of key value. This field is optional. If not specified, default positioning is used. |
BaselineValueFormat
Formatting options for baseline value.
JSON representation |
---|
{ "comparisonType": enum ( |
Fields | |
---|---|
comparisonType
|
The comparison type of key value with baseline value. |
textFormat
|
Text formatting options for baseline value. The link field is not supported. |
position
|
Specifies the horizontal text positioning of baseline value. This field is optional. If not specified, default positioning is used. |
description
|
Description which is appended after the baseline value. This field is optional. |
positiveColor
|
Color to be used, in case baseline value represents a positive change for key value. This field is optional. Deprecated: Use
|
positiveColorStyle
|
Color to be used, in case baseline value represents a positive change for key value. This field is optional. If
|
negativeColor
|
Color to be used, in case baseline value represents a negative change for key value. This field is optional. Deprecated: Use
|
negativeColorStyle
|
Color to be used, in case baseline value represents a negative change for key value. This field is optional. If
|
ComparisonType
The comparison type of key value with baseline value.
Enums | |
---|---|
COMPARISON_TYPE_UNDEFINED
|
Default value, do not use. |
ABSOLUTE_DIFFERENCE
|
Use absolute difference between key and baseline value. |
PERCENTAGE_DIFFERENCE
|
Use percentage difference between key and baseline value. |
ChartNumberFormatSource
The number formatting source options for chart attributes.
Enums | |
---|---|
CHART_NUMBER_FORMAT_SOURCE_UNDEFINED
|
Default value, do not use. |
FROM_DATA
|
Inherit number formatting from data. |
CUSTOM
|
Apply custom formatting as specified by
ChartCustomNumberFormatOptions .
|
ChartCustomNumberFormatOptions
Custom number formatting options for chart attributes.
JSON representation |
---|
{ "prefix": string, "suffix": string } |
Fields | |
---|---|
prefix
|
Custom prefix to be prepended to the chart attribute. This field is optional. |
suffix
|
Custom suffix to be appended to the chart attribute. This field is optional. |
ChartHiddenDimensionStrategy
Determines how charts should handle source rows that are hidden. Hidden rows include both manually hidden and hidden by a filter.
Enums | |
---|---|
CHART_HIDDEN_DIMENSION_STRATEGY_UNSPECIFIED
|
Default value, do not use. |
SKIP_HIDDEN_ROWS_AND_COLUMNS
|
Charts will skip hidden rows and columns. |
SKIP_HIDDEN_ROWS
|
Charts will skip hidden rows only. |
SKIP_HIDDEN_COLUMNS
|
Charts will skip hidden columns only. |
SHOW_ALL
|
Charts will not skip any hidden rows or columns. |
EmbeddedObjectBorder
A border along an embedded object.
JSON representation |
---|
{ "color": { object ( |
Fields | |
---|---|
color
|
The color of the border. Deprecated: Use
|
colorStyle
|
The color of the border. If
|