Versions in this module Expand all Collapse all v2 v2.5.0 Aug 11, 2022 Changes in this version + func FuncOpts(fn string) string + func HSLAColor(h, s, l, a float32) string + func HSLColor(h, s, l float32) string + func RGBAColor(r, g, b uint16, a float32) string + func RGBColor(r, g, b uint16) string + type AngleAxis struct + Clockwise bool + type AreaStyle struct + Color string + Opacity float32 + type Assets struct + CSSAssets types.OrderedSet + CustomizedCSSAssets types.OrderedSet + CustomizedJSAssets types.OrderedSet + JSAssets types.OrderedSet + func (opt *Assets) AddCustomizedCSSAssets(assets ...string) + func (opt *Assets) AddCustomizedJSAssets(assets ...string) + func (opt *Assets) InitAssets() + func (opt *Assets) Validate(host string) + type AxisLabel struct + Align string + Color string + FontFamily string + FontSize string + FontStyle string + FontWeight string + Formatter string + Inside bool + Interval string + LineHeight string + Margin float64 + Rotate float64 + Show bool + ShowMaxLabel bool + ShowMinLabel bool + VerticalAlign string + type AxisLine struct + LineStyle *LineStyle + OnZero bool + OnZeroAxisIndex int + Show bool + Symbol string + SymbolOffset []float64 + SymbolSize []float64 + type AxisPointer struct + Snap bool + Type string + type AxisTick struct + AlignWithLabel bool + Interval string + Show bool + type Bar3DChart struct + Shading string + type BarChart struct + BarCategoryGap string + BarGap string + CoordSystem string + RoundCap bool + ShowBackground bool + Stack string + Type string + XAxisIndex int + YAxisIndex int + type BarData struct + ItemStyle *ItemStyle + Label *Label + Name string + Tooltip *Tooltip + Value interface{} + type BoxPlotData struct + Emphasis *Emphasis + ItemStyle *ItemStyle + Label *Label + Name string + Tooltip *Tooltip + Value interface{} + type Brush struct + Brushlink interface{} + OutOfBrush *BrushOutOfBrush + XAxisIndex interface{} + type BrushOutOfBrush struct + ColorAlpha float32 + type Chart3DData struct + ItemStyle *ItemStyle + Label *Label + Name string + Value []interface{} + type CircularStyle struct + RotateLabel bool + type Colors []string + type DataZoom struct + End float32 + Start float32 + Throttle float32 + Type string + XAxisIndex interface{} + YAxisIndex interface{} + type Dataset struct + Source interface{} + type EdgeLabel struct + Align string + Color string + FontSize float32 + FontStyle string + FontWeight interface{} + Formatter string + Height float32 + Padding interface{} + Position string + Show bool + VerticalAlign string + Width float32 + type EffectScatterData struct + Name string + Value interface{} + type Emphasis struct + ItemStyle *ItemStyle + Label *Label + type Encode struct + X interface{} + Y interface{} + type FunnelData struct + Name string + Value interface{} + type GaugeData struct + Name string + Value interface{} + type GeoComponent struct + ItemStyle *ItemStyle + Map string + Silent bool + type GeoData struct + Name string + Value interface{} + type GraphCategory struct + Label *Label + Name string + type GraphChart struct + Categories []*GraphCategory + Draggable bool + EdgeLabel *EdgeLabel + EdgeSymbol interface{} + EdgeSymbolSize interface{} + FocusNodeAdjacency bool + Force *GraphForce + Layout string + Roam bool + type GraphForce struct + EdgeLength float32 + Gravity float32 + InitLayout string + Repulsion float32 + type GraphLink struct + Label *EdgeLabel + Source interface{} + Target interface{} + Value float32 + type GraphNode struct + Category interface{} + Fixed bool + ItemStyle *ItemStyle + Name string + Symbol string + SymbolSize interface{} + Value float32 + X float32 + Y float32 + type Grid struct + Bottom string + Height string + Left string + Right string + Top string + type Grid3D struct + BoxDepth float32 + BoxHeight float32 + BoxWidth float32 + Show bool + ViewControl *ViewControl + type HeatMapChart struct + XAxisIndex int + YAxisIndex int + type HeatMapData struct + Name string + Value interface{} + type Indicator struct + Color string + Max float32 + Min float32 + Name string + type Initialization struct + AssetsHost string + BackgroundColor string + ChartID string + Height string + PageTitle string + Theme string + Width string + func (opt *Initialization) Validate() + type ItemStyle struct + BorderColor string + BorderColor0 string + BorderColorSaturation float32 + BorderWidth float32 + Color string + Color0 string + GapWidth float32 + Opacity float32 + type JSFunctions struct + Fns []string + func (f *JSFunctions) AddJSFuncs(fn ...string) + type KlineData struct + Name string + Value interface{} + type Label struct + Align string + BackgroundColor string + BorderColor string + BorderDashOffset float32 + BorderRadius float32 + BorderType string + BorderWidth float32 + Color string + FontFamily string + FontSize float32 + FontStyle string + FontWeight string + Formatter string + LineHeight float32 + Padding string + Position string + Show bool + VerticalAlign string + type LabelLine struct + Length2 float64 + LineStyle *LineStyle + MinTurnAngle float64 + Show bool + ShowAbove bool + Smooth bool + type Legend struct + Align string + Bottom string + Data interface{} + Height string + InactiveColor string + ItemHeight int + ItemWidth int + Left string + Orient string + Padding interface{} + Right string + Selected map[string]bool + SelectedMode string + Show bool + TextStyle *TextStyle + Top string + Type string + Width string + X string + Y string + type LineChart struct + ConnectNulls bool + ShowSymbol bool + Smooth bool + Stack string + Step interface{} + XAxisIndex int + YAxisIndex int + type LineData struct + Name string + Symbol string + SymbolSize int + Value interface{} + XAxisIndex int + YAxisIndex int + type LineStyle struct + Color string + Curveness float32 + Opacity float32 + Type string + Width float32 + type LiquidChart struct + IsShowOutline bool + IsWaveAnimation bool + Shape string + type LiquidData struct + Name string + Value interface{} + type MapData struct + Name string + Value interface{} + type MarkLineNameCoordItem struct + Coordinate0 []interface{} + Coordinate1 []interface{} + Name string + ValueDim string + type MarkLineNameTypeItem struct + Name string + Type string + ValueDim string + type MarkLineNameXAxisItem struct + Name string + ValueDim string + XAxis interface{} + type MarkLineNameYAxisItem struct + Name string + ValueDim string + YAxis interface{} + type MarkLineStyle struct + Label *Label + Symbol []string + SymbolSize float32 + type MarkLines struct + Data []interface{} + type MarkPointNameCoordItem struct + Coordinate []interface{} + ItemStyle *ItemStyle + Label *Label + Name string + Symbol string + SymbolRotate float32 + SymbolSize float32 + Value string + ValueDim string + type MarkPointNameTypeItem struct + ItemStyle *ItemStyle + Name string + Type string + ValueDim string + type MarkPointStyle struct + Label *Label + Symbol []string + SymbolRotate float32 + SymbolSize float32 + type MarkPoints struct + Data []interface{} + type ParallelAxis struct + Data interface{} + Dim int + Inverse bool + Max interface{} + Name string + NameLocation string + Type string + type ParallelComponent struct + Bottom string + Left string + Right string + Top string + type ParallelData struct + Name string + Value interface{} + type PieChart struct + Center interface{} + Radius interface{} + RoseType string + type PieData struct + ItemStyle *ItemStyle + Label *Label + Name string + Selected bool + Tooltip *Tooltip + Value interface{} + type Polar struct + Center [2]string + ID string + Radius [2]string + Tooltip Tooltip + Z int + Zlevel int + type PolarAxisBase struct + BoundaryGap bool + ID string + Interval float64 + LogBase float64 + Max float64 + MaxInterval float64 + Min float64 + MinInterval float64 + PolarIndex int + Scale bool + Silent bool + SplitNumber int + StartAngle float64 + TriggerEvent bool + Type string + type RadarComponent struct + Center interface{} + Indicator []*Indicator + Shape string + SplitArea *SplitArea + SplitLine *SplitLine + SplitNumber int + type RadarData struct + Name string + Value interface{} + type RadiusAxis struct + Inverse bool + Name string + NameGap float64 + NameLocation string + NameRadius float64 + NameTextStyle TextStyle + type RippleEffect struct + BrushType string + Period float32 + Scale float32 + type SankeyLink struct + Source interface{} + Target interface{} + Value float32 + type SankeyNode struct + Depth *int + ItemStyle *ItemStyle + Name string + Value string + type ScatterChart struct + XAxisIndex int + YAxisIndex int + type ScatterData struct + Name string + Symbol string + SymbolRotate int + SymbolSize int + Value interface{} + XAxisIndex int + YAxisIndex int + type ScatterSeries struct + Symbol string + SymbolSize float32 + type SingleAxis struct + Bottom string + Left string + Max interface{} + Min interface{} + Right string + Top string + Type string + type SplitArea struct + AreaStyle *AreaStyle + Show bool + type SplitLine struct + AlignWithLabel bool + LineStyle *LineStyle + Show bool + type SunBurstData struct + Children []*SunBurstData + Name string + Value float64 + type SunburstChart struct + Animation bool + AnimationDelay int + AnimationDelayUpdate int + AnimationDuration int + AnimationDurationUpdate int + AnimationEasing string + AnimationEasingUpdate string + AnimationThreshold int + NodeClick string + RenderLabelForZeroData bool + SelectedMode bool + Sort string + type TextStyle struct + Color string + FontFamily string + FontSize int + FontStyle string + Normal *TextStyle + Padding interface{} + type ThemeRiverData struct + Date string + Name string + Value float64 + func (trd ThemeRiverData) ToList() [3]interface{} + type Title struct + Bottom string + Left string + Link string + Right string + SubLink string + Subtitle string + SubtitleStyle *TextStyle + Target string + Title string + TitleStyle *TextStyle + Top string + type ToolBoxFeature struct + Brush *ToolBoxFeatureBrush + DataView *ToolBoxFeatureDataView + DataZoom *ToolBoxFeatureDataZoom + Restore *ToolBoxFeatureRestore + SaveAsImage *ToolBoxFeatureSaveAsImage + type ToolBoxFeatureBrush struct + Type []string + type ToolBoxFeatureDataView struct + BackgroundColor string + Lang []string + Show bool + Title string + type ToolBoxFeatureDataZoom struct + Show bool + Title map[string]string + YAxisIndex interface{} + type ToolBoxFeatureRestore struct + Show bool + Title string + type ToolBoxFeatureSaveAsImage struct + Name string + Show bool + Title string + Type string + type Toolbox struct + Bottom string + Feature *ToolBoxFeature + Left string + Orient string + Right string + Show bool + Top string + type Tooltip struct + AxisPointer *AxisPointer + Formatter string + Show bool + Trigger string + TriggerOn string + type TreeChart struct + Bottom string + ExpandAndCollapse bool + InitialTreeDepth int + Label *Label + Layout string + Leaves *TreeLeaves + Left string + Orient string + Right string + Roam bool + Top string + type TreeData struct + Children []*TreeData + Collapsed bool + ItemStyle *ItemStyle + LineStyle *LineStyle + Name string + Symbol string + SymbolSize interface{} + Value int + type TreeLeaves struct + Emphasis *Emphasis + ItemStyle *ItemStyle + Label *Label + LineStyle *LineStyle + type TreeMapChart struct + Animation bool + Bottom string + ColorMappingBy string + Label *Label + LeafDepth int + Left string + Levels *[]TreeMapLevel + Right string + Roam bool + Top string + UpperLabel *UpperLabel + type TreeMapLevel struct + Color []string + ColorAlpha []float32 + ColorMappingBy string + ColorSaturation []float32 + Emphasis *Emphasis + ItemStyle *ItemStyle + UpperLabel *UpperLabel + type TreeMapNode struct + Children []TreeMapNode + Name string + Value int + type UpperLabel struct + Align string + Color string + Distance float32 + FontSize float32 + FontStyle string + FontWeight interface{} + Formatter string + Height float32 + Offset []float32 + Padding interface{} + Position string + Rotate float32 + Show bool + VerticalAlign string + Width float32 + type ViewControl struct + AutoRotate bool + AutoRotateSpeed float32 + type VisualMap struct + Bottom string + Calculable bool + InRange *VisualMapInRange + Left string + Max float32 + Min float32 + Range []float32 + Right string + Show bool + Text []string + Top string + Type string + type VisualMapInRange struct + Color []string + Symbol string + SymbolSize float32 + type WordCloudChart struct + RotationRange []float32 + Shape string + SizeRange []float32 + type WordCloudData struct + Name string + Value interface{} + type XAxis struct + AxisLabel *AxisLabel + AxisTick *AxisTick + Data interface{} + GridIndex int + Max interface{} + MaxInterval float64 + Min interface{} + MinInterval float64 + Name string + Scale bool + Show bool + SplitArea *SplitArea + SplitLine *SplitLine + SplitNumber int + Type string + type XAxis3D struct + Data interface{} + Grid3DIndex int + Max interface{} + Min interface{} + Name string + Show bool + Type string + type YAxis struct + AxisLabel *AxisLabel + AxisLine *AxisLine + Data interface{} + GridIndex int + Max interface{} + Min interface{} + Name string + Scale bool + Show bool + SplitArea *SplitArea + SplitLine *SplitLine + SplitNumber int + Type string + type YAxis3D struct + Data interface{} + Grid3DIndex int + Max interface{} + Min interface{} + Name string + Show bool + Type string + type ZAxis3D struct + Data interface{} + Grid3DIndex int + Max interface{} + Min interface{} + Name string + Show bool + Type string