Class BasicChartSpec
The specification for a basic chart. See BasicChartType for the list of charts this supports.
Implements
Inherited Members
Namespace: Google.Apis.Sheets.v4.Data
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class BasicChartSpec : IDirectResponseSchema
Properties
Axis
The axis on the chart.
Declaration
[JsonProperty("axis")]
public virtual IList<BasicChartAxis> Axis { get; set; }
Property Value
Type | Description |
---|---|
IList<BasicChartAxis> |
ChartType
The type of the chart.
Declaration
[JsonProperty("chartType")]
public virtual string ChartType { get; set; }
Property Value
Type | Description |
---|---|
string |
CompareMode
The behavior of tooltips and data highlighting when hovering on data and chart area.
Declaration
[JsonProperty("compareMode")]
public virtual string CompareMode { get; set; }
Property Value
Type | Description |
---|---|
string |
Domains
The domain of data this is charting. Only a single domain is supported.
Declaration
[JsonProperty("domains")]
public virtual IList<BasicChartDomain> Domains { get; set; }
Property Value
Type | Description |
---|---|
IList<BasicChartDomain> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
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 BasicChartAxis.title may override the axis title inferred from the header values.)
Declaration
[JsonProperty("headerCount")]
public virtual int? HeaderCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
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.
Declaration
[JsonProperty("interpolateNulls")]
public virtual bool? InterpolateNulls { get; set; }
Property Value
Type | Description |
---|---|
bool? |
LegendPosition
The position of the chart legend.
Declaration
[JsonProperty("legendPosition")]
public virtual string LegendPosition { get; set; }
Property Value
Type | Description |
---|---|
string |
LineSmoothing
Gets whether all lines should be rendered smooth or straight by default. Applies to Line charts.
Declaration
[JsonProperty("lineSmoothing")]
public virtual bool? LineSmoothing { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Series
The data this chart is visualizing.
Declaration
[JsonProperty("series")]
public virtual IList<BasicChartSeries> Series { get; set; }
Property Value
Type | Description |
---|---|
IList<BasicChartSeries> |
StackedType
The stacked type for charts that support vertical stacking. Applies to Area, Bar, Column, Combo, and Stepped Area charts.
Declaration
[JsonProperty("stackedType")]
public virtual string StackedType { get; set; }
Property Value
Type | Description |
---|---|
string |
ThreeDimensional
True to make the chart 3D. Applies to Bar and Column charts.
Declaration
[JsonProperty("threeDimensional")]
public virtual bool? ThreeDimensional { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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 chart_type is one of AREA, BAR, COLUMN, COMBO or STEPPED_AREA and stacked_type is either STACKED or PERCENT_STACKED. In addition, for COMBO, this will only be supported if there is only one type of stackable series type or one type has more series than the others and each of the other types have no more than one series. For example, if a chart has two stacked bar series and one area series, the total data labels will be supported. If it has three bar series and two area series, total data labels are not allowed. Neither CUSTOM nor placement can be set on the total_data_label.
Declaration
[JsonProperty("totalDataLabel")]
public virtual DataLabel TotalDataLabel { get; set; }
Property Value
Type | Description |
---|---|
DataLabel |