Trait

com.google.appsscript.charts

PieChartBuilder

Related Doc: package charts

Permalink

trait PieChartBuilder extends Object

PieChartBuilder A builder for pie charts. For more details, see the Google Charts documentation. Here is an example that shows how to build a pie 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%3AB8' + '&key=0Aq4s9w_HxMs7dHpfX05JdmVSb1FpT21sbXd4NVE3UEE&gid=3&headers=-1';

var chartBuilder = Charts.newPieChart() .setTitle('World Population by Continent') .setDimensions(600, 500) .set3D() .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. PieChartBuilder
  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(): PieChartBuilder

    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 set3D(): PieChartBuilder

    Permalink

    Sets the chart to be three-dimensional.

  21. def setBackgroundColor(cssValue: String): PieChartBuilder

    Permalink

    Sets the background color for the chart.

  22. def setColors(cssValues: Array[String]): PieChartBuilder

    Permalink

    Sets the colors for the lines in the chart.

  23. def setDataSourceUrl(url: String): PieChartBuilder

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

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

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

    Permalink

    Sets the data view definition to use for the chart.

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

    Permalink

    Sets the dimensions for the chart.

  28. def setLegendPosition(position: Position): PieChartBuilder

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

    Permalink

    Sets the text style of the chart legend.

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

    Permalink

  31. def setTitle(chartTitle: String): PieChartBuilder

    Permalink

    Sets the title of the chart.

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

  32. def setTitleTextStyle(textStyle: TextStyle): PieChartBuilder

    Permalink

    Sets the text style of the chart title.

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  36. def valueOf(): Any

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. 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