Trait

com.google.appsscript.charts

AreaChartBuilder

Related Doc: package charts

Permalink

trait AreaChartBuilder extends Object

AreaChartBuilder Builder for area charts. For more details, see the Google Charts documentation. Here is an example that shows how to build an area chart.

function doGet() { // Create a data table with some sample data. var sampleData = Charts.newDataTable() .addColumn(Charts.ColumnType.STRING, "Month") .addColumn(Charts.ColumnType.NUMBER, "Dining") .addColumn(Charts.ColumnType.NUMBER, "Total") .addRow(["Jan", 60, 520]) .addRow(["Feb", 50, 430]) .addRow(["Mar", 53, 440]) .addRow(["Apr", 70, 410]) .addRow(["May", 80, 390]) .addRow(["Jun", 60, 500]) .addRow(["Jul", 100, 450]) .addRow(["Aug", 140, 431]) .addRow(["Sep", 75, 488]) .addRow(["Oct", 70, 521]) .addRow(["Nov", 58, 388]) .addRow(["Dec", 63, 400]) .build();

var chart = Charts.newAreaChart() .setTitle('Yearly Spending') .setXAxisTitle('Month') .setYAxisTitle('Spending (USD)') .setDimensions(600, 500) .setStacked() .setColors(['red', 'green']) .setDataTable(sampleData) .build();

return UiApp.createApplication().add(chart); }

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AreaChartBuilder
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def build(): Chart

    Permalink

    Builds the chart.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  19. def reverseCategories(): AreaChartBuilder

    Permalink

    Reverses the drawing of series in the domain axis.

    Reverses the drawing of series in the domain axis. For vertical-range charts (such as line, area or column charts), this means the horizontal axis is drawn from right to left. For horizontal-range charts (such as bar charts), this means the vertical axis is drawn from top to bottom. For pie charts, this means the slices are drawn counterclockwise.

  20. def setBackgroundColor(cssValue: String): AreaChartBuilder

    Permalink

    Sets the background color for the chart.

  21. def setColors(cssValues: Array[String]): AreaChartBuilder

    Permalink

    Sets the colors for the lines in the chart.

  22. def setDataSourceUrl(url: String): AreaChartBuilder

    Permalink

    Sets the data source URL that will be used to pull data in from an external source, such as Google Sheets.

    Sets the data source URL that will be used to pull data in from an external source, such as Google Sheets. If a data source URL and a DataTable are provided, the data source URL is ignored. For more information about querying data sources, check out the Google Charts documentation.

  23. def setDataTable(table: DataTableSource): AreaChartBuilder

    Permalink

    Sets the data table which contains the lines for the chart, as well as the X-axis labels.

    Sets the data table which contains the lines for the chart, as well as the X-axis labels. The first column should be a string, and contain the horizontal axis labels. Any number of columns can follow, all must be numeric. Each column is displayed as a separate line.

  24. def setDataTable(tableBuilder: DataTableBuilder): AreaChartBuilder

    Permalink

    Sets the data table to use for the chart using a DataTableBuilder.

    Sets the data table to use for the chart using a DataTableBuilder. This is a convenience method for setting the data table without needing to call build().

  25. def setDataViewDefinition(dataViewDefinition: DataViewDefinition): AreaChartBuilder

    Permalink

    Sets the data view definition to use for the chart.

  26. def setDimensions(width: Int, height: Int): AreaChartBuilder

    Permalink

    Sets the dimensions for the chart.

  27. def setLegendPosition(position: Position): AreaChartBuilder

    Permalink

    Sets the position of the legend with respect to the chart.

    Sets the position of the legend with respect to the chart. By default, there will be no legend.

  28. def setLegendTextStyle(textStyle: TextStyle): AreaChartBuilder

    Permalink

    Sets the text style of the chart legend.

  29. def setOption(option: String, value: AnyRef): AreaChartBuilder

    Permalink

  30. def setPointStyle(style: PointStyle): AreaChartBuilder

    Permalink

    Sets the style for points in the line.

    Sets the style for points in the line. By default, points will have no particular styles, and only the line will be visible.

  31. def setRange(start: Number, end: Number): AreaChartBuilder

    Permalink

    Sets the range for the chart.

  32. def setStacked(): AreaChartBuilder

    Permalink

    Uses stacked lines, meaning that line and bar values are stacked (accumulated).

    Uses stacked lines, meaning that line and bar values are stacked (accumulated). By default, there is no stacking.

  33. def setTitle(chartTitle: String): AreaChartBuilder

    Permalink

    Sets the title of the chart.

    Sets the title of the chart. The title will be displayed centered above the chart.

  34. def setTitleTextStyle(textStyle: TextStyle): AreaChartBuilder

    Permalink

    Sets the text style of the chart title.

  35. def setXAxisTextStyle(textStyle: TextStyle): AreaChartBuilder

    Permalink

    Sets the horizontal axis text style.

  36. def setXAxisTitle(title: String): AreaChartBuilder

    Permalink

    Adds a title to the horizontal axis.

    Adds a title to the horizontal axis. The title will be centered and will appear below the axis value labels.

  37. def setXAxisTitleTextStyle(textStyle: TextStyle): AreaChartBuilder

    Permalink

    Sets the horizontal axis title text style.

  38. def setYAxisTextStyle(textStyle: TextStyle): AreaChartBuilder

    Permalink

    Sets the vertical axis text style.

  39. def setYAxisTitle(title: String): AreaChartBuilder

    Permalink

    Adds a title to the vertical axis.

    Adds a title to the vertical axis. The title will be centered and will appear to the left of the value labels.

  40. def setYAxisTitleTextStyle(textStyle: TextStyle): AreaChartBuilder

    Permalink

    Sets the vertical axis title text style.

  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def useLogScale(): AreaChartBuilder

    Permalink

    Makes the range axis into a logarithmic scale (requires all values to be positive).

    Makes the range axis into a logarithmic scale (requires all values to be positive). The range axis will be the vertical axis for vertical charts (line, area, column, etc.) and the horizontal axis for horizontal charts (bar, etc.)

  45. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped