Show / Hide Table of Contents

Class ChartSpec

The specifications of a chart.

Inheritance
System.Object
ChartSpec
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Sheets.v4.Data
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class ChartSpec : IDirectResponseSchema

Properties

AltText

The alternative text that describes the chart. This is often used for accessibility.

Declaration
[JsonProperty("altText")]
public virtual string AltText { get; set; }
Property Value
Type Description
System.String

BackgroundColor

The background color of the entire chart. Not applicable to Org charts.

Declaration
[JsonProperty("backgroundColor")]
public virtual Color BackgroundColor { get; set; }
Property Value
Type Description
Color

BackgroundColorStyle

The background color of the entire chart. Not applicable to Org charts. If background_color is also set, this field takes precedence.

Declaration
[JsonProperty("backgroundColorStyle")]
public virtual ColorStyle BackgroundColorStyle { get; set; }
Property Value
Type Description
ColorStyle

BasicChart

A basic chart specification, can be one of many kinds of charts. See BasicChartType for the list of all charts this supports.

Declaration
[JsonProperty("basicChart")]
public virtual BasicChartSpec BasicChart { get; set; }
Property Value
Type Description
BasicChartSpec

BubbleChart

A bubble chart specification.

Declaration
[JsonProperty("bubbleChart")]
public virtual BubbleChartSpec BubbleChart { get; set; }
Property Value
Type Description
BubbleChartSpec

CandlestickChart

A candlestick chart specification.

Declaration
[JsonProperty("candlestickChart")]
public virtual CandlestickChartSpec CandlestickChart { get; set; }
Property Value
Type Description
CandlestickChartSpec

DataSourceChartProperties

If present, the field contains data source chart specific properties.

Declaration
[JsonProperty("dataSourceChartProperties")]
public virtual DataSourceChartProperties DataSourceChartProperties { get; set; }
Property Value
Type Description
DataSourceChartProperties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

FilterSpecs

The filters applied to the source data of the chart. Only supported for data source charts.

Declaration
[JsonProperty("filterSpecs")]
public virtual IList<FilterSpec> FilterSpecs { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<FilterSpec>

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.

Declaration
[JsonProperty("fontName")]
public virtual string FontName { get; set; }
Property Value
Type Description
System.String

HiddenDimensionStrategy

Determines how the charts will use hidden rows or columns.

Declaration
[JsonProperty("hiddenDimensionStrategy")]
public virtual string HiddenDimensionStrategy { get; set; }
Property Value
Type Description
System.String

HistogramChart

A histogram chart specification.

Declaration
[JsonProperty("histogramChart")]
public virtual HistogramChartSpec HistogramChart { get; set; }
Property Value
Type Description
HistogramChartSpec

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.)

Declaration
[JsonProperty("maximized")]
public virtual bool? Maximized { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

OrgChart

An org chart specification.

Declaration
[JsonProperty("orgChart")]
public virtual OrgChartSpec OrgChart { get; set; }
Property Value
Type Description
OrgChartSpec

PieChart

A pie chart specification.

Declaration
[JsonProperty("pieChart")]
public virtual PieChartSpec PieChart { get; set; }
Property Value
Type Description
PieChartSpec

ScorecardChart

A scorecard chart specification.

Declaration
[JsonProperty("scorecardChart")]
public virtual ScorecardChartSpec ScorecardChart { get; set; }
Property Value
Type Description
ScorecardChartSpec

SortSpecs

The order to sort the chart data by. Only a single sort spec is supported. Only supported for data source charts.

Declaration
[JsonProperty("sortSpecs")]
public virtual IList<SortSpec> SortSpecs { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<SortSpec>

Subtitle

The subtitle of the chart.

Declaration
[JsonProperty("subtitle")]
public virtual string Subtitle { get; set; }
Property Value
Type Description
System.String

SubtitleTextFormat

The subtitle text format. Strikethrough, underline, and link are not supported.

Declaration
[JsonProperty("subtitleTextFormat")]
public virtual TextFormat SubtitleTextFormat { get; set; }
Property Value
Type Description
TextFormat

SubtitleTextPosition

The subtitle text position. This field is optional.

Declaration
[JsonProperty("subtitleTextPosition")]
public virtual TextPosition SubtitleTextPosition { get; set; }
Property Value
Type Description
TextPosition

Title

The title of the chart.

Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
Type Description
System.String

TitleTextFormat

The title text format. Strikethrough, underline, and link are not supported.

Declaration
[JsonProperty("titleTextFormat")]
public virtual TextFormat TitleTextFormat { get; set; }
Property Value
Type Description
TextFormat

TitleTextPosition

The title text position. This field is optional.

Declaration
[JsonProperty("titleTextPosition")]
public virtual TextPosition TitleTextPosition { get; set; }
Property Value
Type Description
TextPosition

TreemapChart

A treemap chart specification.

Declaration
[JsonProperty("treemapChart")]
public virtual TreemapChartSpec TreemapChart { get; set; }
Property Value
Type Description
TreemapChartSpec

WaterfallChart

A waterfall chart specification.

Declaration
[JsonProperty("waterfallChart")]
public virtual WaterfallChartSpec WaterfallChart { get; set; }
Property Value
Type Description
WaterfallChartSpec

Implements

IDirectResponseSchema
In This Article
Back to top