Documentation
¶
Index ¶
- Constants
- func BarChartMaterialPage(chart google.Chart) string
- func StreamBarChartMaterialPage(qw422016 *qt422016.Writer, chart google.Chart)
- func TimeSeriesSetToDataTable(name string, sets []string, set timeseries.TimeSeriesSet) (google.DataTable, error)
- func WriteBarChartMaterialPage(qq422016 qtio422016.Writer, chart google.Chart)
- type BarChartMaterial
- type BarChartOptions
- type BarChartOptionsBar
- type BarChartOptionsHAxis
- type BarChartOptionsLegend
Constants ¶
View Source
const ( IsStackedAbsolute = "absolute" IsStackedPercent = "percent" IsStackedRelative = "relative" )
Variables ¶
This section is empty.
Functions ¶
func BarChartMaterialPage ¶
func TimeSeriesSetToDataTable ¶
func TimeSeriesSetToDataTable(name string, sets []string, set timeseries.TimeSeriesSet) (google.DataTable, error)
func WriteBarChartMaterialPage ¶
func WriteBarChartMaterialPage(qq422016 qtio422016.Writer, chart google.Chart)
Types ¶
type BarChartMaterial ¶
type BarChartMaterial struct { Title string ChartDiv string DataTable google.DataTable Options BarChartOptions }
BarChartMaterial represents the chart at: https://developers-dot-devsite-v2-prod.appspot.com/chart/interactive/docs/gallery/barchart
func (BarChartMaterial) ChartDivOrDefault ¶
func (chart BarChartMaterial) ChartDivOrDefault() string
func (BarChartMaterial) DataTableJSON ¶
func (chart BarChartMaterial) DataTableJSON() []byte
func (BarChartMaterial) OptionsJSON ¶
func (chart BarChartMaterial) OptionsJSON() []byte
func (BarChartMaterial) PageTitle ¶
func (chart BarChartMaterial) PageTitle() string
func (BarChartMaterial) WritePageHTML ¶
func (chart BarChartMaterial) WritePageHTML(filename string, perm os.FileMode) error
type BarChartOptions ¶
type BarChartOptions struct { Width uint `json:"width"` Height uint `json:"height"` Legend BarChartOptionsLegend `json:"legend,omitempty"` Bar BarChartOptionsBar `json:"bar"` IsStacked string `json:"isStacked"` HorizontalAxis BarChartOptionsHAxis `json:"hAxis"` }
func BarChartOptionsDefault ¶
func BarChartOptionsDefault() BarChartOptions
func (BarChartOptions) MustJSON ¶
func (opts BarChartOptions) MustJSON() []byte
type BarChartOptionsBar ¶
type BarChartOptionsBar struct {
GroupWidth string `json:"groupWidth,omitempty"`
}
type BarChartOptionsHAxis ¶
type BarChartOptionsLegend ¶
Click to show internal directories.
Click to hide internal directories.