Documentation ¶
Index ¶
- func LineChartMaterialPage(chart Chart) string
- func LineChartPage(chart google.Chart) string
- func StreamLineChartMaterialPage(qw422016 *qt422016.Writer, chart Chart)
- func StreamLineChartPage(qw422016 *qt422016.Writer, chart google.Chart)
- func TimeSeriesSetToLineChartMaterial(tss *timeseries.TimeSeriesSet, fn func(t time.Time) string) ([]google.Column, [][]any, error)
- func WriteLineChartMaterialPage(qq422016 qtio422016.Writer, chart Chart)
- func WriteLineChartPage(qq422016 qtio422016.Writer, chart google.Chart)
- type Chart
- func (chart *Chart) ChartDivOrDefault() string
- func (chart *Chart) DataMatrixJSON() []byte
- func (chart *Chart) DataTableJSON() []byte
- func (chart *Chart) LoadTimeSeriesSetMonth(tss *timeseries.TimeSeriesSet, fn func(t time.Time) string) error
- func (chart *Chart) OptionsJSON() []byte
- func (chart *Chart) PageHTML() string
- func (chart *Chart) PageTitle() string
- func (chart *Chart) WriteFilePage(filename string, perm os.FileMode) error
- type Options
- type OptionsChart
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LineChartMaterialPage ¶
func LineChartPage ¶ added in v2.20.0
func StreamLineChartPage ¶ added in v2.20.0
func TimeSeriesSetToLineChartMaterial ¶
func TimeSeriesSetToLineChartMaterial(tss *timeseries.TimeSeriesSet, fn func(t time.Time) string) ([]google.Column, [][]any, error)
func WriteLineChartMaterialPage ¶
func WriteLineChartMaterialPage(qq422016 qtio422016.Writer, chart Chart)
func WriteLineChartPage ¶ added in v2.20.0
func WriteLineChartPage(qq422016 qtio422016.Writer, chart google.Chart)
Types ¶
type Chart ¶ added in v2.20.0
type Chart struct { Title string Subtitle string ChartDiv string Width int Height int Columns []google.Column Data google.DataTable GoogleOptions *Options }
Chart provides data for Google Material Line Charts described here: https://developers.google.com/chart/interactive/docs/gallery/linechart#examples
func ChartFromTimeSeriesSet ¶ added in v2.20.0
func ChartFromTimeSeriesSet(tss timeseries.TimeSeriesSet, yearLabel string) (Chart, error)
func (*Chart) ChartDivOrDefault ¶ added in v2.20.0
func (*Chart) DataMatrixJSON ¶ added in v2.20.0
func (*Chart) DataTableJSON ¶ added in v2.20.0
func (*Chart) LoadTimeSeriesSetMonth ¶ added in v2.20.0
func (chart *Chart) LoadTimeSeriesSetMonth(tss *timeseries.TimeSeriesSet, fn func(t time.Time) string) error
func (*Chart) OptionsJSON ¶ added in v2.20.0
type Options ¶ added in v2.20.0
type Options struct { Chart OptionsChart `json:"chart,omitempty"` Height uint `json:"height,omitempty"` Width uint `json:"width,omitempty"` }
type OptionsChart ¶ added in v2.20.0
Click to show internal directories.
Click to hide internal directories.