Google Charts API

From Earlham CS Department
Revision as of 04:26, 3 February 2014 by Ghcrows13 (talk | contribs) (Charts)
Jump to navigation Jump to search

Under construction during Spring 2014.

Summary

Introduction

Google Charts are relatively easy to get running but have a lot of nuance to them.

Data

The [DataTable] class stores data to be used by charts.

  • Data can be imported via JSON or via arrays using [this syntax].

Charts

  • Chart options can be set in multiple ways:
    • at creation by the chart's options parameter
    • chart.setOptions(json) which is equivalent to setting options at creation
    • chart.setOption('key', value) where key is the option being changed
    • Example: chart.setOption('is3D', true);

Views

The [DataView] class changes how a DataTable is represented.

Controls

Resources

Google

[Library Documentation]

[Code Playground]

  • The column chart, combo chart,

External

Snippets