Documention for: charts-api.r Created by: chrisrg on: 10-Aug-2008 Last updated by: chrisrg on: 11-Sep-2008 Format: text/editable Downloaded on: 30-Apr-2025 Google Charts API Christopher Ross-Gill 9th August 2008 A URL generator to access the Google Charts API ===Usage This 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. =url http://code.google.com/apis/chart/ Google Charts API ---Basic Line Chart 'Line' is the default Chart Type: view layout [ image chart [data: [10 95 60 95 10]] ] ---Basic Bar Chart Types 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]] ] ---Data Sets Data can be supplied as a single or multiple sets: data: [1 2 3 4] data: [[1 2] [3 4] [5 6]] ---Styles Basic 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