Trait

com.google.appsscript.charts

ScatterChartBuilder

Related Doc: package charts

Permalink

trait ScatterChartBuilder extends Object

ScatterChartBuilder Builder for scatter charts. For more details, see the Google Charts documentation. Here is an example that shows how to build a scatter 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=C1%3AD' + '&key=0Aq4s9w_HxMs7dHpfX05JdmVSb1FpT21sbXd4NVE3UEE&gid=4&headers=-1';

var chartBuilder = Charts.newScatterChart() .setTitle('Adjusted GDP vs. U.S. Population') .setXAxisTitle('U.S. Population (millions)') .setYAxisTitle('Adjusted GDP ($ billions)') .setDimensions(600, 500) .setLegendPosition(Charts.Position.NONE) .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. ScatterChartBuilder
  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 setBackgroundColor(cssValue: String): ScatterChartBuilder

    Permalink

    Sets the background color for the chart.

  20. def setColors(cssValues: Array[String]): ScatterChartBuilder

    Permalink

    Sets the colors for the lines in the chart.

  21. def setDataSourceUrl(url: String): ScatterChartBuilder

    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.

  22. def setDataTable(table: DataTableSource): ScatterChartBuilder

    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.

  23. def setDataTable(tableBuilder: DataTableBuilder): ScatterChartBuilder

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

  24. def setDataViewDefinition(dataViewDefinition: DataViewDefinition): ScatterChartBuilder

    Permalink

    Sets the data view definition to use for the chart.

  25. def setDimensions(width: Int, height: Int): ScatterChartBuilder

    Permalink

    Sets the dimensions for the chart.

  26. def setLegendPosition(position: Position): ScatterChartBuilder

    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.

  27. def setLegendTextStyle(textStyle: TextStyle): ScatterChartBuilder

    Permalink

    Sets the text style of the chart legend.

  28. def setOption(option: String, value: AnyRef): ScatterChartBuilder

    Permalink

  29. def setPointStyle(style: PointStyle): ScatterChartBuilder

    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.

  30. def setTitle(chartTitle: String): ScatterChartBuilder

    Permalink

    Sets the title of the chart.

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

  31. def setTitleTextStyle(textStyle: TextStyle): ScatterChartBuilder

    Permalink

    Sets the text style of the chart title.

  32. def setXAxisLogScale(): ScatterChartBuilder

    Permalink

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

  33. def setXAxisRange(start: Number, end: Number): ScatterChartBuilder

    Permalink

    Sets the range for the horizontal axis of the chart.

  34. def setXAxisTextStyle(textStyle: TextStyle): ScatterChartBuilder

    Permalink

    Sets the horizontal axis text style.

  35. def setXAxisTitle(title: String): ScatterChartBuilder

    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.

  36. def setXAxisTitleTextStyle(textStyle: TextStyle): ScatterChartBuilder

    Permalink

    Sets the horizontal axis title text style.

  37. def setYAxisLogScale(): ScatterChartBuilder

    Permalink

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

  38. def setYAxisRange(start: Number, end: Number): ScatterChartBuilder

    Permalink

    Sets the range for the vertical axis of the chart.

    Sets the range for the vertical axis of the chart. If any data points fall outside the range, the range will be expanded to include those data points.

  39. def setYAxisTextStyle(textStyle: TextStyle): ScatterChartBuilder

    Permalink

    Sets the vertical axis text style.

  40. def setYAxisTitle(title: String): ScatterChartBuilder

    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.

  41. def setYAxisTitleTextStyle(textStyle: TextStyle): ScatterChartBuilder

    Permalink

    Sets the vertical axis title text style.

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  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