View script | License | Download documentation as: HTML or editable |
Download script | History | Other scripts by: chrisrg |
8-Feb 19:06 UTC
[0.049] 10.916k
[0.049] 10.916k
Documentation for: charts-api.rGoogle Charts APIChristopher Ross-Gill 9th August 2008 A URL generator to access the Google Charts API 1. UsageThis is a rudimentary wrapper for the Google Charts API. It takes some of the work out of generating API arguments, though knowledge of the API is still recommended. 1.1 Basic Line Chart'Line' is the default Chart Type: view layout [ image chart [data: [10 95 60 95 10]] ] 1.2 Basic Bar ChartTypes can be specified, either by the preset words (see script) or by the chart types set in the Google API: view layout [ image chart [type: 'bar data: [10 95 60 95 10] bars: [55 8]] ] 1.3 Data SetsData can be supplied as a single or multiple sets: data: [1 2 3 4] data: [[1 2] [3 4] [5 6]] 1.4 StylesBasic styles can be supplied: color: red area: [color solid 255.153.0] area: [[color solid 255.140.204][chart solid 0.204.204]] bars: [40 5 10] ; width space group-space |