Documentation
¶
Index ¶
Constants ¶
View Source
const ( ChartTypeLine = "line" ChartTypeBar = "bar" ChartTypeHistogram = "histogram" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AxisOptions ¶
type AxisOptions struct {
Title string `json:"title,omitempty"`
}
type ChartItem ¶
type ChartItem struct { Type string `json:"type"` Options ChartOptions `json:"options"` Labels []string `json:"labels,omitempty"` Datasets []*DataItem `json:"datasets,omitempty"` }
type ChartOptions ¶
type ChartOptions struct { Title string `json:"title,omitempty"` Width float64 `json:"width,omitempty"` Height float64 `json:"height,omitempty"` X AxisOptions `json:"x,omitempty"` Y AxisOptions `json:"y,omitempty"` }
func (*ChartOptions) HeightLength ¶
func (it *ChartOptions) HeightLength() float64
func (*ChartOptions) WidthLength ¶
func (it *ChartOptions) WidthLength() float64
type ChartRenderOptions ¶
type DataItem ¶
type DataItem struct { Name string `json:"name,omitempty"` Attrs []string `json:"attrs,omitempty"` Points []*DataPoint `json:"points,omitempty"` }
func NewDataItem ¶
Click to show internal directories.
Click to hide internal directories.