public final class BasicChartSpec
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Sheets API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
BasicChartSpec() |
Modifier and Type | Method and Description |
---|---|
BasicChartSpec |
clone() |
List<BasicChartAxis> |
getAxis()
The axis on the chart.
|
String |
getChartType()
The type of the chart.
|
String |
getCompareMode()
The behavior of tooltips and data highlighting when hovering on data and chart area.
|
List<BasicChartDomain> |
getDomains()
The domain of data this is charting.
|
Integer |
getHeaderCount()
The number of rows or columns in the data that are "headers".
|
Boolean |
getInterpolateNulls()
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).
|
String |
getLegendPosition()
The position of the chart legend.
|
Boolean |
getLineSmoothing()
Gets whether all lines should be rendered smooth or straight by default.
|
List<BasicChartSeries> |
getSeries()
The data this chart is visualizing.
|
String |
getStackedType()
The stacked type for charts that support vertical stacking.
|
Boolean |
getThreeDimensional()
True to make the chart 3D.
|
DataLabel |
getTotalDataLabel()
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.
|
BasicChartSpec |
set(String fieldName,
Object value) |
BasicChartSpec |
setAxis(List<BasicChartAxis> axis)
The axis on the chart.
|
BasicChartSpec |
setChartType(String chartType)
The type of the chart.
|
BasicChartSpec |
setCompareMode(String compareMode)
The behavior of tooltips and data highlighting when hovering on data and chart area.
|
BasicChartSpec |
setDomains(List<BasicChartDomain> domains)
The domain of data this is charting.
|
BasicChartSpec |
setHeaderCount(Integer headerCount)
The number of rows or columns in the data that are "headers".
|
BasicChartSpec |
setInterpolateNulls(Boolean 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).
|
BasicChartSpec |
setLegendPosition(String legendPosition)
The position of the chart legend.
|
BasicChartSpec |
setLineSmoothing(Boolean lineSmoothing)
Gets whether all lines should be rendered smooth or straight by default.
|
BasicChartSpec |
setSeries(List<BasicChartSeries> series)
The data this chart is visualizing.
|
BasicChartSpec |
setStackedType(String stackedType)
The stacked type for charts that support vertical stacking.
|
BasicChartSpec |
setThreeDimensional(Boolean threeDimensional)
True to make the chart 3D.
|
BasicChartSpec |
setTotalDataLabel(DataLabel 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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<BasicChartAxis> getAxis()
null
for nonepublic BasicChartSpec setAxis(List<BasicChartAxis> axis)
axis
- axis or null
for nonepublic String getChartType()
null
for nonepublic BasicChartSpec setChartType(String chartType)
chartType
- chartType or null
for nonepublic String getCompareMode()
null
for nonepublic BasicChartSpec setCompareMode(String compareMode)
compareMode
- compareMode or null
for nonepublic List<BasicChartDomain> getDomains()
null
for nonepublic BasicChartSpec setDomains(List<BasicChartDomain> domains)
domains
- domains or null
for nonepublic Integer getHeaderCount()
null
for nonepublic BasicChartSpec setHeaderCount(Integer headerCount)
headerCount
- headerCount or null
for nonepublic Boolean getInterpolateNulls()
null
for nonepublic BasicChartSpec setInterpolateNulls(Boolean interpolateNulls)
interpolateNulls
- interpolateNulls or null
for nonepublic String getLegendPosition()
null
for nonepublic BasicChartSpec setLegendPosition(String legendPosition)
legendPosition
- legendPosition or null
for nonepublic Boolean getLineSmoothing()
null
for nonepublic BasicChartSpec setLineSmoothing(Boolean lineSmoothing)
lineSmoothing
- lineSmoothing or null
for nonepublic List<BasicChartSeries> getSeries()
null
for nonepublic BasicChartSpec setSeries(List<BasicChartSeries> series)
series
- series or null
for nonepublic String getStackedType()
null
for nonepublic BasicChartSpec setStackedType(String stackedType)
stackedType
- stackedType or null
for nonepublic Boolean getThreeDimensional()
null
for nonepublic BasicChartSpec setThreeDimensional(Boolean threeDimensional)
threeDimensional
- threeDimensional or null
for nonepublic DataLabel getTotalDataLabel()
null
for nonepublic BasicChartSpec setTotalDataLabel(DataLabel totalDataLabel)
totalDataLabel
- totalDataLabel or null
for nonepublic BasicChartSpec set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public BasicChartSpec clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.