Trait

com.google.appsscript.charts

LineChartBuilder

Related Doc: package charts

Permalink

trait LineChartBuilder extends Object

LineChartBuilder Builder for line charts. For more details, see the Google Charts documentation. Here is an example that shows how to build a line chart. The data is imported from a Google spreadsheet.

function doGet() { // Get sample data from a spreadsheet. var dataSourceUrl = 'https://docs.google.com/spreadsheet/tq?range=A1%3AG5' + '&key=0Aq4s9w_HxMs7dHpfX05JdmVSb1FpT21sbXd4NVE3UEE&gid=2&headers=-1';

var chartBuilder = Charts.newLineChart() .setTitle('Yearly Rainfall') .setXAxisTitle('Month') .setYAxisTitle('Rainfall (in)') .setDimensions(600, 500) .setCurveStyle(Charts.CurveStyle.SMOOTH) .setPointStyle(Charts.PointStyle.MEDIUM) .setDataSourceUrl(dataSourceUrl);

var chart = chartBuilder.build(); return UiApp.createApplication().add(chart); }

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LineChartBuilder
  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(): LineChartBuilder

    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): LineChartBuilder

    Permalink

    Sets the background color for the chart.

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

    Permalink

    Sets the colors for the lines in the chart.

  22. def setCurveStyle(style: CurveStyle): LineChartBuilder

    Permalink

    Sets the style to use for curves in the chart.

    Sets the style to use for curves in the chart. See CurveStyle for allowed curve styles.

  23. def setDataSourceUrl(url: String): LineChartBuilder

    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.

  24. def setDataTable(table: DataTableSource): LineChartBuilder

    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.

  25. def setDataTable(tableBuilder: DataTableBuilder): LineChartBuilder

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

  26. def setDataViewDefinition(dataViewDefinition: DataViewDefinition): LineChartBuilder

    Permalink

    Sets the data view definition to use for the chart.

  27. def setDimensions(width: Int, height: Int): LineChartBuilder

    Permalink

    Sets the dimensions for the chart.

  28. def setLegendPosition(position: Position): LineChartBuilder

    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.

  29. def setLegendTextStyle(textStyle: TextStyle): LineChartBuilder

    Permalink

    Sets the text style of the chart legend.

  30. def setOption(option: String, value: AnyRef): LineChartBuilder

    Permalink

  31. def setPointStyle(style: PointStyle): LineChartBuilder

    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.

  32. def setRange(start: Number, end: Number): LineChartBuilder

    Permalink

    Sets the range for the chart.

  33. def setTitle(chartTitle: String): LineChartBuilder

    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): LineChartBuilder

    Permalink

    Sets the text style of the chart title.

  35. def setXAxisTextStyle(textStyle: TextStyle): LineChartBuilder

    Permalink

    Sets the horizontal axis text style.

  36. def setXAxisTitle(title: String): LineChartBuilder

    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): LineChartBuilder

    Permalink

    Sets the horizontal axis title text style.

  38. def setYAxisTextStyle(textStyle: TextStyle): LineChartBuilder

    Permalink

    Sets the vertical axis text style.

  39. def setYAxisTitle(title: String): LineChartBuilder

    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): LineChartBuilder

    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(): LineChartBuilder

    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