30 gchart.set_base_url(url): Set the base URL of the API. Default: "http://chart.apis.google.com/chart" |
30 gchart.set_base_url(url): Set the base URL of the API. Default: "http://chart.apis.google.com/chart" |
31 For example if another provider supports an API compatible with Google Charts, you could use this to switch gchart.lua to using their service instead. |
31 For example if another provider supports an API compatible with Google Charts, you could use this to switch gchart.lua to using their service instead. |
32 |
32 |
33 gchart.new(type): Creates a new chart. Default type is "line". |
33 gchart.new(type): Creates a new chart. Default type is "line". |
34 Returns the new chart object. |
34 Returns the new chart object. |
|
35 |
35 ### Charts |
36 ### Charts |
36 |
37 |
37 All these functions assume that 'chart' is a chart object returned from gchart.new(). |
38 All these functions assume that 'chart' is a chart object returned from gchart.new(). |
38 |
39 |
39 chart:set_type(type): Set the type of chart. |
40 chart:set_type(type): Set the type of chart. |
113 |
114 |
114 marker.label: Text label for the marker. Default is to use marker.index. |
115 marker.label: Text label for the marker. Default is to use marker.index. |
115 |
116 |
116 marker.color: Colour for the marker. A simple hexadecimal value like 00FF00. |
117 marker.color: Colour for the marker. A simple hexadecimal value like 00FF00. |
117 |
118 |
118 marker.series: Which data series the marker should be on. Use default is 0 (the first series) |
119 marker.series: Which data series the marker should be on. Default is 0 (the first series) |
119 |
120 |
120 marker.index: The index of the data point to add the marker at. Default is 0 (the start of the series) |
121 marker.index: The index of the data point to add the marker at. Default is 0 (the start of the series) |
121 |
122 |
122 marker.size: Text size of the marker's label. Default is 11 (for 11pt text) |
123 marker.size: Text size of the marker's label. Default is 11 (for 11pt text) |
123 |
124 |