Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultWidth = 900 DefaultHeight = 500 DefaultChartDiv = "chart_div" TypeNumber = "number" TypeString = "string" )
Variables ¶
This section is empty.
Functions ¶
func LineChartMaterialPage ¶
func LineChartMaterialPage(data LineChartMaterial) string
func StreamLineChartMaterialPage ¶
func StreamLineChartMaterialPage(qw422016 *qt422016.Writer, data LineChartMaterial)
func WriteLineChartMaterialPage ¶
func WriteLineChartMaterialPage(qq422016 qtio422016.Writer, data LineChartMaterial)
Types ¶
type LineChartMaterial ¶
type LineChartMaterial struct { Title string Subtitle string ChartDiv string Width int Height int Columns []Column Data [][]interface{} }
LineChartMaterial provides data for Google Material Line Charts described here: https://developers.google.com/chart/interactive/docs/gallery/linechart#examples
func LineChartMaterialFromTimeSeriesSet ¶ added in v2.7.1
func LineChartMaterialFromTimeSeriesSet(tss timeseries.TimeSeriesSet, yearLabel string) (LineChartMaterial, error)
func (*LineChartMaterial) ChartDivOrDefault ¶
func (lcm *LineChartMaterial) ChartDivOrDefault() string
func (*LineChartMaterial) DataMatrixJSON ¶
func (lcm *LineChartMaterial) DataMatrixJSON() []byte
func (*LineChartMaterial) HeightOrDefault ¶
func (lcm *LineChartMaterial) HeightOrDefault() int
func (*LineChartMaterial) WidthOrDefault ¶
func (lcm *LineChartMaterial) WidthOrDefault() int
Click to show internal directories.
Click to hide internal directories.