Versions in this module Expand all Collapse all v1 v1.0.0 Mar 14, 2021 v0 v0.1.0 Feb 4, 2021 Changes in this version + var ChartType = struct{ ... } + var ThemeType = struct{ ... } + func FuncOpts(fn string) string + type AreaStyleOpts struct + Color string + Opacity float32 + type AssetsOpts struct + CSSAssets datatypes.OrderedSet + JSAssets datatypes.OrderedSet + type Bar struct + func NewBar(routers ...RouterOpts) *Bar + func (c *Bar) AddXAxis(xAxis interface{}) *Bar + func (c *Bar) AddYAxis(name string, yAxis interface{}, options ...seriesOptser) *Bar + func (c *Bar) Render(w ...io.Writer) error + func (c *Bar) XYReversal() *Bar + type Bar3D struct + func NewBar3D(routers ...RouterOpts) *Bar3D + func (c *Bar3D) AddXYAxis(xAxis, yAxis interface{}) *Bar3D + func (c *Bar3D) AddZAxis(name string, zAxis interface{}, options ...seriesOptser) *Bar3D + type Bar3DOpts struct + Shading string + type BarOpts struct + BarCategoryGap string + BarGap string + Stack string + XAxisIndex int + YAxisIndex int + type BaseOpts struct + Colors []string + Has3DAxis bool + HasGeo bool + HasParallel bool + HasRadar bool + HasSingleAxis bool + HasXYAxis bool + type BoxPlot struct + func NewBoxPlot(routers ...RouterOpts) *BoxPlot + func (c *BoxPlot) AddXAxis(xAxis interface{}) *BoxPlot + func (c *BoxPlot) AddYAxis(name string, yAxis interface{}, options ...seriesOptser) *BoxPlot + type Chart3D struct + Grid3D Grid3DOpts + XAxis3D XAxis3DOpts + YAxis3D YAxis3DOpts + ZAxis3D ZAxis3DOpts + func (c *Chart3D) Render(w ...io.Writer) error + func (c *Chart3D) SetGlobalOptions(options ...globalOptser) *Chart3D + type ColorOpts []string + type DataZoomOpts struct + End float32 + Start float32 + Throttle float32 + Type string + XAxisIndex interface{} + YAxisIndex interface{} + type DataZoomOptsList []DataZoomOpts + func (dz DataZoomOptsList) Len() int + type EffectScatter struct + func NewEffectScatter(routers ...RouterOpts) *EffectScatter + func (c *EffectScatter) AddXAxis(xAxis interface{}) *EffectScatter + func (c *EffectScatter) AddYAxis(name string, yAxis interface{}, options ...seriesOptser) *EffectScatter + type EffectScatterChartOpts struct + XAxisIndex int + YAxisIndex int + type EmphasisOpts struct + ItemStyle ItemStyleOpts + Label LabelTextOpts + type Funnel struct + func NewFunnel(routers ...RouterOpts) *Funnel + func (c *Funnel) Add(name string, data map[string]interface{}, options ...seriesOptser) *Funnel + func (c *Funnel) Render(w ...io.Writer) error + func (c *Funnel) SetGlobalOptions(options ...globalOptser) *Funnel + type Gauge struct + func NewGauge(routers ...RouterOpts) *Gauge + func (c *Gauge) Add(name string, data map[string]interface{}, options ...seriesOptser) *Gauge + func (c *Gauge) Render(w ...io.Writer) error + func (c *Gauge) SetGlobalOptions(options ...globalOptser) *Gauge + type Geo struct + func NewGeo(mapType string, routers ...RouterOpts) *Geo + func (c *Geo) Add(name, geoType string, data map[string]float32, options ...seriesOptser) *Geo + func (c *Geo) Render(w ...io.Writer) error + func (c *Geo) SetGlobalOptions(options ...globalOptser) *Geo + type GeoComponentOpts struct + Map string + type Graph struct + func NewGraph(routers ...RouterOpts) *Graph + func (c *Graph) Add(name string, nodes []GraphNode, links []GraphLink, options ...seriesOptser) *Graph + func (c *Graph) Render(w ...io.Writer) error + func (c *Graph) SetGlobalOptions(options ...globalOptser) *Graph + type GraphCategory struct + Label LabelTextOpts + Name string + type GraphForce struct + EdgeLength float32 + Gravity float32 + Repulsion float32 + type GraphLink struct + Source interface{} + Target interface{} + Value float32 + type GraphNode struct + Category int + Fixed bool + ItemStyle ItemStyleOpts + Name string + Symbol string + SymbolSize interface{} + Value float32 + X float32 + Y float32 + type GraphOpts struct + Categories []GraphCategory + FocusNodeAdjacency bool + Force GraphForce + Layout string + Roam bool + type Grid3DOpts struct + BoxDepth float32 + BoxHeight float32 + BoxWidth float32 + Show bool + ViewControl ViewControlOpts + type HeatMap struct + func NewHeatMap(routers ...RouterOpts) *HeatMap + func (c *HeatMap) AddXAxis(xAxis interface{}) *HeatMap + func (c *HeatMap) AddYAxis(name string, yAxis interface{}, options ...seriesOptser) *HeatMap + type HeatMapOpts struct + XAxisIndex int + YAxisIndex int + type IndicatorOpts struct + Color string + Max float32 + Min float32 + Name string + type InitOpts struct + AssetsHost string + BackgroundColor string + ChartID string + Height string + PageTitle string + Theme string + Width string + type ItemStyleOpts struct + BorderColor string + BorderColor0 string + Color string + Color0 string + Opacity float32 + type JSFunctions struct + Fns []string + func (f *JSFunctions) AddJSFuncs(fn ...string) + type Kline struct + func NewKLine(routers ...RouterOpts) *Kline + func (c *Kline) AddXAxis(xAxis interface{}) *Kline + func (c *Kline) AddYAxis(name string, yAxis interface{}, options ...seriesOptser) *Kline + type LabelTextOpts struct + Color string + Formatter string + Position string + Rotate int + Show bool + type LegendOpts struct + Bottom string + Data interface{} + Left string + Right string + SelectedMode string + TextStyle TextStyleOpts + Top string + type Line struct + func NewLine(routers ...RouterOpts) *Line + func (c *Line) AddXAxis(xAxis interface{}) *Line + func (c *Line) AddYAxis(name string, yAxis interface{}, options ...seriesOptser) *Line + type Line3D struct + func NewLine3D(routers ...RouterOpts) *Line3D + func (c *Line3D) AddXYAxis(xAxis, yAxis interface{}) *Line3D + func (c *Line3D) AddZAxis(name string, zAxis interface{}, options ...seriesOptser) *Line3D + type LineOpts struct + Smooth bool + Stack string + Step bool + XAxisIndex int + YAxisIndex int + type LineStyleOpts struct + Color string + Curveness float32 + Opacity float32 + Type string + Width float32 + type Liquid struct + func NewLiquid(routers ...RouterOpts) *Liquid + func (c *Liquid) Add(name string, data interface{}, options ...seriesOptser) *Liquid + func (c *Liquid) Render(w ...io.Writer) error + func (c *Liquid) SetGlobalOptions(options ...globalOptser) *Liquid + type LiquidOpts struct + IsShowOutline bool + IsWaveAnimation bool + Shape string + type LiquidOutlineOpts struct + Show bool + type MLNameCoordItem struct + Coord0 []interface{} + Coord1 []interface{} + Name string + ValueDim string + type MLNameTypeItem struct + Name string + Type string + ValueDim string + type MLNameXAxisItem struct + Name string + ValueDim string + XAxis interface{} + type MLNameYAxisItem struct + Name string + ValueDim string + YAxis interface{} + type MLStyleOpts struct + Label LabelTextOpts + Symbol []string + SymbolSize float32 + type MPNameCoordItem struct + Coord []interface{} + Name string + ValueDim string + type MPNameTypeItem struct + Name string + Type string + ValueDim string + type MPStyleOpts struct + Label LabelTextOpts + Symbol string + SymbolSize float32 + type Map struct + func NewMap(mapType string, routers ...RouterOpts) *Map + func (c *Map) Add(name string, data map[string]float32, options ...seriesOptser) *Map + func (c *Map) Render(w ...io.Writer) error + func (c *Map) SetGlobalOptions(options ...globalOptser) *Map + type MarkLine struct + Data []interface{} + type MarkPoint struct + Data []interface{} + type PAOpts struct + Data interface{} + Dim int + Inverse bool + Max interface{} + Name string + NameLocation string + Type string + type Page struct + Charts []interface{} + func NewPage(routers ...RouterOpts) *Page + func (page *Page) Add(charts ...charter) *Page + func (page *Page) Render(w ...io.Writer) error + type Parallel struct + func NewParallel(routers ...RouterOpts) *Parallel + func (c *Parallel) Add(name string, data interface{}, options ...seriesOptser) *Parallel + func (c *Parallel) Render(w ...io.Writer) error + func (c *Parallel) SetGlobalOptions(options ...globalOptser) *Parallel + type ParallelAxisOpts []PAOpts + type ParallelComponentOpts struct + Bottom string + Left string + Right string + Top string + type Pie struct + func NewPie(routers ...RouterOpts) *Pie + func (c *Pie) Add(name string, data map[string]interface{}, options ...seriesOptser) *Pie + func (c *Pie) AddSorted(name string, data map[string]interface{}, options ...seriesOptser) *Pie + func (c *Pie) Render(w ...io.Writer) error + func (c *Pie) SetGlobalOptions(options ...globalOptser) *Pie + type PieOpts struct + Center interface{} + Radius interface{} + RoseType string + type Radar struct + func NewRadar(routers ...RouterOpts) *Radar + func (c *Radar) Add(name string, data interface{}, options ...seriesOptser) *Radar + func (c *Radar) Render(w ...io.Writer) error + func (c *Radar) SetGlobalOptions(options ...globalOptser) *Radar + type RadarComponentOpts struct + Indicator []IndicatorOpts + Shape string + SplitArea SplitAreaOpts + SplitLine SplitLineOpts + SplitNumber int + type RectChart struct + func (rc *RectChart) Overlap(a ...rectCharter) + func (rc *RectChart) Render(w ...io.Writer) error + func (rc *RectChart) SetGlobalOptions(options ...globalOptser) *RectChart + type RectOpts struct + type RippleEffectOpts struct + BrushType string + Period float32 + Scale float32 + type RouterOpts struct + Text string + URL string + type Routers []RouterOpts + func (hr Routers) Len() int + type Sankey struct + func NewSankey(routers ...RouterOpts) *Sankey + func (c *Sankey) Add(name string, nodes []SankeyNode, links []SankeyLink, options ...seriesOptser) *Sankey + func (c *Sankey) Render(w ...io.Writer) error + func (c *Sankey) SetGlobalOptions(options ...globalOptser) *Sankey + type SankeyLink struct + Source interface{} + Target interface{} + Value float32 + type SankeyNode struct + Name string + Value string + type SaveAsImage struct + PixelRatio int + type Scatter struct + func NewScatter(routers ...RouterOpts) *Scatter + func (c *Scatter) AddXAxis(xAxis interface{}) *Scatter + func (c *Scatter) AddYAxis(name string, yAxis interface{}, options ...seriesOptser) *Scatter + type Scatter3D struct + func NewScatter3D(routers ...RouterOpts) *Scatter3D + func (c *Scatter3D) AddXYAxis(xAxis, yAxis interface{}) *Scatter3D + func (c *Scatter3D) AddZAxis(name string, zAxis interface{}, options ...seriesOptser) *Scatter3D + type ScatterOpts struct + XAxisIndex int + YAxisIndex int + type Series []singleSeries + func (series *Series) SetSeriesOptions(options ...seriesOptser) + type SingleAxisOpts struct + Bottom string + Left string + Max interface{} + Min interface{} + Right string + Top string + Type string + type SplitAreaOpts struct + AreaStyle AreaStyleOpts + Show bool + type SplitLineOpts struct + LineStyle LineStyleOpts + Show bool + type Surface3D struct + func NewSurface3D(routers ...RouterOpts) *Surface3D + func (c *Surface3D) AddXYAxis(xAxis, yAxis interface{}) *Surface3D + func (c *Surface3D) AddZAxis(name string, zAxis interface{}, options ...seriesOptser) *Surface3D + type TBFeature struct + DataView struct{} + DataZoom struct{} + Restore struct{} + type TextStyleOpts struct + Color string + FontSize int + FontStyle string + Normal *TextStyleOpts + type ThemeRiver struct + func NewThemeRiver(routers ...RouterOpts) *ThemeRiver + func (c *ThemeRiver) Add(name string, data interface{}, options ...seriesOptser) *ThemeRiver + func (c *ThemeRiver) Render(w ...io.Writer) error + func (c *ThemeRiver) SetGlobalOptions(options ...globalOptser) *ThemeRiver + type TitleOpts struct + Bottom string + Left string + Link string + Right string + Subtitle string + SubtitleStyle TextStyleOpts + Target string + Title string + TitleStyle TextStyleOpts + Top string + type ToolboxOpts struct + Show bool + type TooltipOpts struct + Formatter string + Show bool + Trigger string + TriggerOn string + type VMInRange struct + Color []string + Symbol string + SymbolSize float32 + type ViewControlOpts struct + AutoRotate bool + AutoRotateSpeed float32 + type VisualMapOpts struct + Calculable bool + InRange VMInRange + Max float32 + Min float32 + Range []float32 + Text []string + Type string + type VisualMapOptsList []VisualMapOpts + func (vm VisualMapOptsList) Len() int + type WordCloud struct + func NewWordCloud(routers ...RouterOpts) *WordCloud + func (c *WordCloud) Add(name string, data map[string]interface{}, options ...seriesOptser) *WordCloud + func (c *WordCloud) Render(w ...io.Writer) error + func (c *WordCloud) SetGlobalOptions(options ...globalOptser) *WordCloud + type WordCloudOpts struct + RotationRange []float32 + Shape string + SizeRange []float32 + type XAxis3DOpts struct + Data interface{} + Grid3DIndex int + Max interface{} + Min interface{} + Name bool + Show bool + Type string + type XAxisOpts struct + AxisLabel LabelTextOpts + Data interface{} + GridIndex int + Max interface{} + Min interface{} + Name string + NameRotate int + Scale bool + Show bool + SplitArea SplitAreaOpts + SplitLine SplitLineOpts + SplitNumber int + Type string + type XYAxis struct + XAxisOptsList []XAxisOpts + YAxisOptsList []YAxisOpts + func (xy *XYAxis) ExtendXAxis(xAxis ...XAxisOpts) + func (xy *XYAxis) ExtendYAxis(yAxis ...YAxisOpts) + type YAxis3DOpts struct + Data interface{} + Grid3DIndex int + Max interface{} + Min interface{} + Name bool + Show bool + Type string + type YAxisOpts struct + AxisLabel LabelTextOpts + Data interface{} + GridIndex int + Max interface{} + Min interface{} + Name string + NameRotate int + Scale bool + Show bool + SplitArea SplitAreaOpts + SplitLine SplitLineOpts + SplitNumber int + Type string + type ZAxis3DOpts struct + Data interface{} + Grid3DIndex int + Max interface{} + Min interface{} + Name bool + Show bool + Type string