Documentation ¶
Index ¶
Constants ¶
View Source
const Spline = "spline"
View Source
const TimeSeries = "timeseries"
columns: [
['x', '2013-01-01', '2013-01-02', '2013-01-03', '2013-01-04', '2013-01-05', '2013-01-06'], // ['x', '20130101', '20130102', '20130103', '20130104', '20130105', '20130106'], ['data1', 30, 200, 100, 400, 150, 250], ['data2', 130, 340, 200, 500, 250, 350]
]
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chart ¶
type Chart struct { Width int `json:"-"` Height int `json:"-"` BindTo string `json:"bindto,omitempty"` Data *Data `json:"data,omitempty"` Donut *Donut `json:"donut,omitempty"` Axis map[string]*Axis `json:"axis,omitempty"` Tooltip interface{} `json:"tooltip,omitempty"` Bar *Bar `json:"bar,omitempty"` }
type Data ¶
type Data struct { Columns [][]interface{} `json:"columns,omitempty"` X string `json:"x,omitempty"` XFormat string `json:"xFormat,omitempty"` Type Type `json:"type,omitempty"` // spline, bar, pie Types map[string]Type `json:"types,omitempty"` Groups [][]string `json:"groups,omitempty"` // which charts to stack, e.g. [['data1', 'data2']] }
Click to show internal directories.
Click to hide internal directories.