Documentation
¶
Index ¶
- type Bar
- type Bar3D
- type BaseActions
- type BaseConfiguration
- type BoxPlot
- type Chart3D
- type EffectScatter
- type Funnel
- type Gauge
- type Geo
- type GlobalActions
- type GlobalOpts
- func WithAngleAxisOps(opt opts.AngleAxis) GlobalOpts
- func WithAxisPointerOpts(opt *opts.AxisPointer) GlobalOpts
- func WithBrush(opt opts.Brush) GlobalOpts
- func WithColorsOpts(opt opts.Colors) GlobalOpts
- func WithDataZoomOpts(opt ...opts.DataZoom) GlobalOpts
- func WithGeoComponentOpts(opt opts.GeoComponent) GlobalOpts
- func WithGrid3DOpts(opt opts.Grid3D) GlobalOpts
- func WithGridOpts(opt ...opts.Grid) GlobalOpts
- func WithInitializationOpts(opt opts.Initialization) GlobalOpts
- func WithLegendOpts(opt opts.Legend) GlobalOpts
- func WithParallelAxisList(opt []opts.ParallelAxis) GlobalOpts
- func WithParallelComponentOpts(opt opts.ParallelComponent) GlobalOpts
- func WithPolarOps(opt opts.Polar) GlobalOpts
- func WithRadarComponentOpts(opt opts.RadarComponent) GlobalOpts
- func WithRadiusAxisOps(opt opts.RadiusAxis) GlobalOpts
- func WithSingleAxisOpts(opt opts.SingleAxis) GlobalOpts
- func WithTitleOpts(opt opts.Title) GlobalOpts
- func WithToolboxOpts(opt opts.Toolbox) GlobalOpts
- func WithTooltipOpts(opt opts.Tooltip) GlobalOpts
- func WithVisualMapOpts(opt ...opts.VisualMap) GlobalOpts
- func WithXAxis3DOpts(opt opts.XAxis3D) GlobalOpts
- func WithXAxisOpts(opt opts.XAxis, index ...int) GlobalOpts
- func WithYAxis3DOpts(opt opts.YAxis3D) GlobalOpts
- func WithYAxisOpts(opt opts.YAxis, index ...int) GlobalOpts
- func WithZAxis3DOpts(opt opts.ZAxis3D) GlobalOpts
- type Graph
- type HeatMap
- type Kline
- type Line
- type Line3D
- type Liquid
- type Map
- func (c *Map) AddSeries(name string, data []opts.MapData, options ...SeriesOpts) *Map
- func (c *Map) RegisterMapType(mapType string)
- func (c *Map) SetDispatchActions(actions ...GlobalActions) *Map
- func (c *Map) SetGlobalOptions(options ...GlobalOpts) *Map
- func (Map) Type() string
- func (c *Map) Validate()
- type MultiSeries
- type Overlaper
- type Parallel
- func (c *Parallel) AddSeries(name string, data []opts.ParallelData, options ...SeriesOpts) *Parallel
- func (c *Parallel) SetDispatchActions(actions ...GlobalActions) *Parallel
- func (c *Parallel) SetGlobalOptions(options ...GlobalOpts) *Parallel
- func (Parallel) Type() string
- func (c *Parallel) Validate()
- type Pie
- type Radar
- type RectChart
- type RectConfiguration
- type Sankey
- type Scatter
- type Scatter3D
- type SeriesOpts
- func WithAreaStyleOpts(opt opts.AreaStyle) SeriesOpts
- func WithBar3DChartOpts(opt opts.Bar3DChart) SeriesOpts
- func WithBarChartOpts(opt opts.BarChart) SeriesOpts
- func WithCircularStyleOpts(opt opts.CircularStyle) SeriesOpts
- func WithEmphasisOpts(opt opts.Emphasis) SeriesOpts
- func WithEncodeOpts(opt opts.Encode) SeriesOpts
- func WithGraphChartOpts(opt opts.GraphChart) SeriesOpts
- func WithHeatMapChartOpts(opt opts.HeatMapChart) SeriesOpts
- func WithItemStyleOpts(opt opts.ItemStyle) SeriesOpts
- func WithLabelOpts(opt opts.Label) SeriesOpts
- func WithLineChartOpts(opt opts.LineChart) SeriesOpts
- func WithLineStyleOpts(opt opts.LineStyle) SeriesOpts
- func WithLiquidChartOpts(opt opts.LiquidChart) SeriesOpts
- func WithMarkLineNameCoordItemOpts(opt ...opts.MarkLineNameCoordItem) SeriesOpts
- func WithMarkLineNameTypeItemOpts(opt ...opts.MarkLineNameTypeItem) SeriesOpts
- func WithMarkLineNameXAxisItemOpts(opt ...opts.MarkLineNameXAxisItem) SeriesOpts
- func WithMarkLineNameYAxisItemOpts(opt ...opts.MarkLineNameYAxisItem) SeriesOpts
- func WithMarkLineStyleOpts(opt opts.MarkLineStyle) SeriesOpts
- func WithMarkPointNameCoordItemOpts(opt ...opts.MarkPointNameCoordItem) SeriesOpts
- func WithMarkPointNameTypeItemOpts(opt ...opts.MarkPointNameTypeItem) SeriesOpts
- func WithMarkPointStyleOpts(opt opts.MarkPointStyle) SeriesOpts
- func WithPieChartOpts(opt opts.PieChart) SeriesOpts
- func WithRippleEffectOpts(opt opts.RippleEffect) SeriesOpts
- func WithScatterChartOpts(opt opts.ScatterChart) SeriesOpts
- func WithSunburstOpts(opt opts.SunburstChart) SeriesOpts
- func WithTreeMapOpts(opt opts.TreeMapChart) SeriesOpts
- func WithTreeOpts(opt opts.TreeChart) SeriesOpts
- func WithWorldCloudChartOpts(opt opts.WordCloudChart) SeriesOpts
- type SingleSeries
- type Sunburst
- func (c *Sunburst) AddSeries(name string, data []opts.SunBurstData, options ...SeriesOpts) *Sunburst
- func (c *Sunburst) SetDispatchActions(actions ...GlobalActions) *Sunburst
- func (c *Sunburst) SetGlobalOptions(options ...GlobalOpts) *Sunburst
- func (Sunburst) Type() string
- func (c *Sunburst) Validate()
- type Surface3D
- type ThemeRiver
- func (c *ThemeRiver) AddSeries(name string, data []opts.ThemeRiverData, options ...SeriesOpts) *ThemeRiver
- func (c *ThemeRiver) SetDispatchActions(actions ...GlobalActions) *ThemeRiver
- func (c *ThemeRiver) SetGlobalOptions(options ...GlobalOpts) *ThemeRiver
- func (ThemeRiver) Type() string
- func (c *ThemeRiver) Validate()
- type Tree
- type TreeMap
- type WordCloud
- func (c *WordCloud) AddSeries(name string, data []opts.WordCloudData, options ...SeriesOpts) *WordCloud
- func (c *WordCloud) SetDispatchActions(actions ...GlobalActions) *WordCloud
- func (c *WordCloud) SetGlobalOptions(options ...GlobalOpts) *WordCloud
- func (WordCloud) Type() string
- func (c *WordCloud) Validate()
- type XYAxis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct {
RectChart
// contains filtered or unexported fields
}
Bar represents a bar chart.
func (*Bar) EnablePolarType ¶
EnablePolarType enables the polar bar.
func (*Bar) XYReversal ¶
XYReversal checks if X axis and Y axis are reversed.
type Bar3D ¶
type Bar3D struct {
Chart3D
}
Bar3D represents a 3D bar chart.
func (*Bar3D) AddSeries ¶
func (c *Bar3D) AddSeries(name string, data []opts.Chart3DData, options ...SeriesOpts) *Bar3D
AddSeries adds the new series.
type BaseActions ¶
type BaseActions struct {
actions.Type `json:"type,omitempty"`
actions.Areas `json:"areas,omitempty"`
}
BaseActions represents a dispatchAction set needed by all chart types.
func (*BaseActions) JSONNotEscapedAction ¶
func (ba *BaseActions) JSONNotEscapedAction() template.HTML
JSONNotEscapedAction works like method JSON, but it returns a marshaled object whose characters will not be escaped in the template
type BaseConfiguration ¶
type BaseConfiguration struct {
opts.Legend `json:"legend"`
opts.Tooltip `json:"tooltip"`
opts.Toolbox `json:"toolbox"`
opts.Title `json:"title"`
opts.Dataset `json:"dataset"`
opts.Polar `json:"polar"`
opts.AngleAxis `json:"angleAxis"`
opts.RadiusAxis `json:"radiusAxis"`
opts.Brush `json:"brush"`
*opts.AxisPointer `json:"axisPointer"`
render.Renderer `json:"-"`
opts.Initialization `json:"-"`
opts.Assets `json:"-"`
opts.RadarComponent `json:"-"`
opts.GeoComponent `json:"-"`
opts.ParallelComponent `json:"-"`
opts.JSFunctions `json:"-"`
opts.SingleAxis `json:"-"`
MultiSeries
XYAxis
opts.XAxis3D
opts.YAxis3D
opts.ZAxis3D
opts.Grid3D
opts.Grid
// Colors is the color list of palette.
// If no color is set in series, the colors would be adopted sequentially and circularly
// from this list as the colors of series.
Colors []string
DataZoomList []opts.DataZoom `json:"datazoom,omitempty"`
VisualMapList []opts.VisualMap `json:"visualmap,omitempty"`
// ParallelAxisList represents the component list which is the coordinate axis for parallel coordinate.
ParallelAxisList []opts.ParallelAxis
GridList []opts.Grid `json:"grid,omitempty"`
// contains filtered or unexported fields
}
BaseConfiguration represents an option set needed by all chart types.
func (*BaseConfiguration) GetAssets ¶
func (bc *BaseConfiguration) GetAssets() opts.Assets
GetAssets returns the Assets options.
func (*BaseConfiguration) JSON ¶
func (bc *BaseConfiguration) JSON() map[string]interface{}
JSON wraps all the options to a map so that it could be used in the base template
Get data in bytes bs, _ : = json.Marshal(bar.JSON())
func (*BaseConfiguration) JSONNotEscaped ¶
func (bc *BaseConfiguration) JSONNotEscaped() template.HTML
JSONNotEscaped works like method JSON, but it returns a marshaled object whose characters will not be escaped in the template
type BoxPlot ¶
type BoxPlot struct {
RectChart
}
BoxPlot represents a boxplot chart.
func (*BoxPlot) AddSeries ¶
func (c *BoxPlot) AddSeries(name string, data []opts.BoxPlotData, options ...SeriesOpts) *BoxPlot
AddSeries adds the new series.
type Chart3D ¶
type Chart3D struct {
BaseConfiguration
}
Chart3D is a chart in 3D coordinates.
func (*Chart3D) SetGlobalOptions ¶
func (c *Chart3D) SetGlobalOptions(options ...GlobalOpts) *Chart3D
SetGlobalOptions sets options for the Chart3D instance.
type EffectScatter ¶
type EffectScatter struct {
RectChart
}
EffectScatter represents an effect scatter chart.
func NewEffectScatter ¶
func NewEffectScatter() *EffectScatter
NewEffectScatter creates a new effect scatter chart.
func (*EffectScatter) AddSeries ¶
func (c *EffectScatter) AddSeries(name string, data []opts.EffectScatterData, options ...SeriesOpts) *EffectScatter
AddSeries adds the Y axis.
func (*EffectScatter) SetXAxis ¶
func (c *EffectScatter) SetXAxis(x interface{}) *EffectScatter
SetXAxis adds the X axis.
func (*EffectScatter) Validate ¶
func (c *EffectScatter) Validate()
Validate validates the given configuration.
type Funnel ¶
type Funnel struct {
BaseConfiguration
BaseActions
}
Funnel represents a funnel chart.
func (*Funnel) AddSeries ¶
func (c *Funnel) AddSeries(name string, data []opts.FunnelData, options ...SeriesOpts) *Funnel
AddSeries adds new data sets.
func (*Funnel) SetDispatchActions ¶
func (c *Funnel) SetDispatchActions(actions ...GlobalActions) *Funnel
SetDispatchActions sets actions for the Gauge instance.
func (*Funnel) SetGlobalOptions ¶
func (c *Funnel) SetGlobalOptions(options ...GlobalOpts) *Funnel
SetGlobalOptions sets options for the Funnel instance.
type Gauge ¶
type Gauge struct {
BaseConfiguration
BaseActions
}
Gauge represents a gauge chart.
func (*Gauge) SetDispatchActions ¶
func (c *Gauge) SetDispatchActions(actions ...GlobalActions) *Gauge
SetDispatchActions sets actions for the Gauge instance.
func (*Gauge) SetGlobalOptions ¶
func (c *Gauge) SetGlobalOptions(options ...GlobalOpts) *Gauge
SetGlobalOptions sets options for the Gauge instance.
type Geo ¶
type Geo struct {
BaseConfiguration
BaseActions
}
Geo represents a geo chart.
func (*Geo) AddSeries ¶
AddSeries adds new data sets. geoType options: * types.ChartScatter * types.ChartEffectScatter * types.ChartHeatMap
func (*Geo) SetDispatchActions ¶
func (c *Geo) SetDispatchActions(actions ...GlobalActions) *Geo
SetDispatchActions sets actions for the Geo instance.
func (*Geo) SetGlobalOptions ¶
func (c *Geo) SetGlobalOptions(options ...GlobalOpts) *Geo
SetGlobalOptions sets options for the Geo instance.
type GlobalActions ¶
type GlobalActions func(ba *BaseActions)
GlobalActions sets the Global actions for charts
func WithAreas ¶
func WithAreas(act actions.Areas) GlobalActions
WithAreas sets the areas of the action
type GlobalOpts ¶
type GlobalOpts func(bc *BaseConfiguration)
GlobalOpts sets the Global options for charts.
func WithAngleAxisOps ¶
func WithAngleAxisOps(opt opts.AngleAxis) GlobalOpts
WithAngleAxisOps sets the angle of the axis.
func WithAxisPointerOpts ¶
func WithAxisPointerOpts(opt *opts.AxisPointer) GlobalOpts
WithAxisPointerOpts sets the axis pointer.
func WithColorsOpts ¶
func WithColorsOpts(opt opts.Colors) GlobalOpts
WithColorsOpts sets the color.
func WithDataZoomOpts ¶
func WithDataZoomOpts(opt ...opts.DataZoom) GlobalOpts
WithDataZoomOpts sets the list of the zoom data.
func WithGeoComponentOpts ¶
func WithGeoComponentOpts(opt opts.GeoComponent) GlobalOpts
WithGeoComponentOpts sets the geo component.
func WithGrid3DOpts ¶
func WithGrid3DOpts(opt opts.Grid3D) GlobalOpts
WithGrid3DOpts sets the grid of the Chart3D instance.
func WithGridOpts ¶
func WithGridOpts(opt ...opts.Grid) GlobalOpts
WithGridOpts sets the List of the grid.
func WithInitializationOpts ¶
func WithInitializationOpts(opt opts.Initialization) GlobalOpts
WithInitializationOpts sets the initialization.
func WithLegendOpts ¶
func WithLegendOpts(opt opts.Legend) GlobalOpts
WithLegendOpts sets the legend.
func WithParallelAxisList ¶
func WithParallelAxisList(opt []opts.ParallelAxis) GlobalOpts
WithParallelAxisList sets the list of the parallel axis.
func WithParallelComponentOpts ¶
func WithParallelComponentOpts(opt opts.ParallelComponent) GlobalOpts
WithParallelComponentOpts sets the parallel component.
func WithRadarComponentOpts ¶
func WithRadarComponentOpts(opt opts.RadarComponent) GlobalOpts
WithRadarComponentOpts sets the component of the radar.
func WithRadiusAxisOps ¶
func WithRadiusAxisOps(opt opts.RadiusAxis) GlobalOpts
WithRadiusAxisOps sets the radius of the axis.
func WithSingleAxisOpts ¶
func WithSingleAxisOpts(opt opts.SingleAxis) GlobalOpts
WithSingleAxisOpts sets the single axis.
func WithToolboxOpts ¶
func WithToolboxOpts(opt opts.Toolbox) GlobalOpts
WithToolboxOpts sets the toolbox.
func WithTooltipOpts ¶
func WithTooltipOpts(opt opts.Tooltip) GlobalOpts
WithTooltipOpts sets the tooltip.
func WithVisualMapOpts ¶
func WithVisualMapOpts(opt ...opts.VisualMap) GlobalOpts
WithVisualMapOpts sets the List of the visual map.
func WithXAxis3DOpts ¶
func WithXAxis3DOpts(opt opts.XAxis3D) GlobalOpts
WithXAxis3DOpts sets the X axis of the Chart3D instance.
func WithXAxisOpts ¶
func WithXAxisOpts(opt opts.XAxis, index ...int) GlobalOpts
WithXAxisOpts sets the X axis.
func WithYAxis3DOpts ¶
func WithYAxis3DOpts(opt opts.YAxis3D) GlobalOpts
WithYAxis3DOpts sets the Y axis of the Chart3D instance.
func WithYAxisOpts ¶
func WithYAxisOpts(opt opts.YAxis, index ...int) GlobalOpts
WithYAxisOpts sets the Y axis.
func WithZAxis3DOpts ¶
func WithZAxis3DOpts(opt opts.ZAxis3D) GlobalOpts
WithZAxis3DOpts sets the Z axis of the Chart3D instance.
type Graph ¶
type Graph struct {
BaseConfiguration
BaseActions
}
Graph represents a graph chart.
func (*Graph) AddSeries ¶
func (c *Graph) AddSeries(name string, nodes []opts.GraphNode, links []opts.GraphLink, options ...SeriesOpts) *Graph
AddSeries adds the new series.
func (*Graph) SetDispatchActions ¶
func (c *Graph) SetDispatchActions(actions ...GlobalActions) *Graph
SetDispatchActions sets actions for the Graph instance.
func (*Graph) SetGlobalOptions ¶
func (c *Graph) SetGlobalOptions(options ...GlobalOpts) *Graph
SetGlobalOptions sets options for the Graph instance.
type HeatMap ¶
type HeatMap struct {
RectChart
}
HeatMap represents a heatmap chart.
func (*HeatMap) AddSeries ¶
func (c *HeatMap) AddSeries(name string, data []opts.HeatMapData, options ...SeriesOpts) *HeatMap
AddSeries adds the new series.
type Kline ¶
type Kline struct {
RectChart
}
Kline represents a kline chart.
type Line ¶
type Line struct {
RectChart
}
Line represents a line chart.
type Line3D ¶
type Line3D struct {
Chart3D
}
Line3D represents a 3D line chart.
func (*Line3D) AddSeries ¶
func (c *Line3D) AddSeries(name string, data []opts.Chart3DData, options ...SeriesOpts) *Line3D
AddSeries adds the new series.
type Liquid ¶
type Liquid struct {
BaseConfiguration
BaseActions
}
Liquid represents a liquid chart.
func (*Liquid) AddSeries ¶
func (c *Liquid) AddSeries(name string, data []opts.LiquidData, options ...SeriesOpts) *Liquid
AddSeries adds new data sets.
func (*Liquid) SetDispatchActions ¶
func (c *Liquid) SetDispatchActions(actions ...GlobalActions) *Liquid
SetDispatchActions sets actions for the Liquid instance.
func (*Liquid) SetGlobalOptions ¶
func (c *Liquid) SetGlobalOptions(options ...GlobalOpts) *Liquid
SetGlobalOptions sets options for the Liquid instance.
type Map ¶
type Map struct {
BaseConfiguration
BaseActions
// contains filtered or unexported fields
}
Map represents a map chart.
func (*Map) RegisterMapType ¶
RegisterMapType registers the given mapType.
func (*Map) SetDispatchActions ¶
func (c *Map) SetDispatchActions(actions ...GlobalActions) *Map
SetDispatchActions sets actions for the Radar instance.
func (*Map) SetGlobalOptions ¶
func (c *Map) SetGlobalOptions(options ...GlobalOpts) *Map
SetGlobalOptions sets options for the Map instance.
type MultiSeries ¶
type MultiSeries []SingleSeries
MultiSeries represents multiple series.
func (*MultiSeries) SetSeriesOptions ¶
func (ms *MultiSeries) SetSeriesOptions(opts ...SeriesOpts)
SetSeriesOptions sets options for all the series. Previous options will be overwrote every time hence setting them on the `AddSeries` if you want to customize each series individually
here -> ↓ <-
func (c *Bar) AddSeries(name string, data []opts.BarData, options ...SeriesOpts)
type Parallel ¶
type Parallel struct {
BaseConfiguration
BaseActions
}
Parallel represents a parallel axis.
func (*Parallel) AddSeries ¶
func (c *Parallel) AddSeries(name string, data []opts.ParallelData, options ...SeriesOpts) *Parallel
AddSeries adds new data sets.
func (*Parallel) SetDispatchActions ¶
func (c *Parallel) SetDispatchActions(actions ...GlobalActions) *Parallel
SetDispatchActions sets actions for the Radar instance.
func (*Parallel) SetGlobalOptions ¶
func (c *Parallel) SetGlobalOptions(options ...GlobalOpts) *Parallel
SetGlobalOptions sets options for the Parallel instance.
type Pie ¶
type Pie struct {
BaseConfiguration
BaseActions
}
Pie represents a pie chart.
func (*Pie) SetDispatchActions ¶
func (c *Pie) SetDispatchActions(actions ...GlobalActions) *Pie
SetDispatchActions sets actions for the Pie instance.
func (*Pie) SetGlobalOptions ¶
func (c *Pie) SetGlobalOptions(options ...GlobalOpts) *Pie
SetGlobalOptions sets options for the Pie instance.
type Radar ¶
type Radar struct {
BaseConfiguration
BaseActions
}
Radar represents a radar chart.
func (*Radar) SetDispatchActions ¶
func (c *Radar) SetDispatchActions(actions ...GlobalActions) *Radar
SetDispatchActions sets actions for the Radar instance.
func (*Radar) SetGlobalOptions ¶
func (c *Radar) SetGlobalOptions(options ...GlobalOpts) *Radar
SetGlobalOptions sets options for the Radar instance.
type RectChart ¶
type RectChart struct {
RectConfiguration
// contains filtered or unexported fields
}
RectChart is a chart in RectChart coordinate.
func (*RectChart) Overlap ¶
Overlap composes multiple charts into one single canvas. It is only suited for some of the charts which are in rectangular coordinate. Supported charts: Bar/BoxPlot/Line/Scatter/EffectScatter/Kline/HeatMap
func (*RectChart) SetDispatchActions ¶
func (rc *RectChart) SetDispatchActions(options ...GlobalActions) *RectChart
SetDispatchActions sets actions for the RectChart instance.
func (*RectChart) SetGlobalOptions ¶
func (rc *RectChart) SetGlobalOptions(options ...GlobalOpts) *RectChart
SetGlobalOptions sets options for the RectChart instance.
type RectConfiguration ¶
type RectConfiguration struct {
BaseConfiguration
BaseActions
}
RectConfiguration contains options for the rectangular coordinates.
type Sankey ¶
type Sankey struct {
BaseConfiguration
BaseActions
}
Sankey represents a sankey chart.
func (*Sankey) AddSeries ¶
func (c *Sankey) AddSeries(name string, nodes []opts.SankeyNode, links []opts.SankeyLink, options ...SeriesOpts) *Sankey
AddSeries adds new data sets.
func (*Sankey) SetDispatchActions ¶
func (c *Sankey) SetDispatchActions(actions ...GlobalActions) *Sankey
SetDispatchActions sets actions for the Sankey instance.
func (*Sankey) SetGlobalOptions ¶
func (c *Sankey) SetGlobalOptions(options ...GlobalOpts) *Sankey
SetGlobalOptions sets options for the Sankey instance.
type Scatter ¶
type Scatter struct {
RectChart
}
Scatter represents a scatter chart.
func (*Scatter) AddSeries ¶
func (c *Scatter) AddSeries(name string, data []opts.ScatterData, options ...SeriesOpts) *Scatter
AddSeries adds the new series.
type Scatter3D ¶
type Scatter3D struct {
Chart3D
}
Scatter3D represents a 3D scatter chart.
func (*Scatter3D) AddSeries ¶
func (c *Scatter3D) AddSeries(name string, data []opts.Chart3DData, options ...SeriesOpts) *Scatter3D
AddSeries adds the new series.
type SeriesOpts ¶
type SeriesOpts func(s *SingleSeries)
func WithAreaStyleOpts ¶
func WithAreaStyleOpts(opt opts.AreaStyle) SeriesOpts
WithAreaStyleOpts sets the area style.
func WithBar3DChartOpts ¶
func WithBar3DChartOpts(opt opts.Bar3DChart) SeriesOpts
WithBar3DChartOpts sets the Bar3DChart option.
func WithBarChartOpts ¶
func WithBarChartOpts(opt opts.BarChart) SeriesOpts
WithBarChartOpts sets the BarChart option.
func WithCircularStyleOpts ¶
func WithCircularStyleOpts(opt opts.CircularStyle) SeriesOpts
With CircularStyle Opts
func WithEmphasisOpts ¶
func WithEmphasisOpts(opt opts.Emphasis) SeriesOpts
WithEmphasisOpts sets the emphasis.
func WithEncodeOpts ¶
func WithEncodeOpts(opt opts.Encode) SeriesOpts
WithEncodeOpts Set encodes for dataSets
func WithGraphChartOpts ¶
func WithGraphChartOpts(opt opts.GraphChart) SeriesOpts
WithGraphChartOpts sets the GraphChart option.
func WithHeatMapChartOpts ¶
func WithHeatMapChartOpts(opt opts.HeatMapChart) SeriesOpts
WithHeatMapChartOpts sets the HeatMapChart option.
func WithItemStyleOpts ¶
func WithItemStyleOpts(opt opts.ItemStyle) SeriesOpts
WithItemStyleOpts sets the item style.
func WithLineChartOpts ¶
func WithLineChartOpts(opt opts.LineChart) SeriesOpts
WithLineChartOpts sets the LineChart option.
func WithLineStyleOpts ¶
func WithLineStyleOpts(opt opts.LineStyle) SeriesOpts
WithLineStyleOpts sets the line style.
func WithLiquidChartOpts ¶
func WithLiquidChartOpts(opt opts.LiquidChart) SeriesOpts
WithLiquidChartOpts sets the LiquidChart option.
func WithMarkLineNameCoordItemOpts ¶
func WithMarkLineNameCoordItemOpts(opt ...opts.MarkLineNameCoordItem) SeriesOpts
WithMarkLineNameCoordItemOpts sets the coordinates of the MarkLine.
func WithMarkLineNameTypeItemOpts ¶
func WithMarkLineNameTypeItemOpts(opt ...opts.MarkLineNameTypeItem) SeriesOpts
WithMarkLineNameTypeItemOpts sets the type of the MarkLine.
func WithMarkLineNameXAxisItemOpts ¶
func WithMarkLineNameXAxisItemOpts(opt ...opts.MarkLineNameXAxisItem) SeriesOpts
WithMarkLineNameXAxisItemOpts sets the X axis of the MarkLine.
func WithMarkLineNameYAxisItemOpts ¶
func WithMarkLineNameYAxisItemOpts(opt ...opts.MarkLineNameYAxisItem) SeriesOpts
WithMarkLineNameYAxisItemOpts sets the Y axis of the MarkLine.
func WithMarkLineStyleOpts ¶
func WithMarkLineStyleOpts(opt opts.MarkLineStyle) SeriesOpts
WithMarkLineStyleOpts sets the style of the MarkLine.
func WithMarkPointNameCoordItemOpts ¶
func WithMarkPointNameCoordItemOpts(opt ...opts.MarkPointNameCoordItem) SeriesOpts
WithMarkPointNameCoordItemOpts sets the coordinated of the MarkPoint.
func WithMarkPointNameTypeItemOpts ¶
func WithMarkPointNameTypeItemOpts(opt ...opts.MarkPointNameTypeItem) SeriesOpts
WithMarkPointNameTypeItemOpts sets the type of the MarkPoint.
func WithMarkPointStyleOpts ¶
func WithMarkPointStyleOpts(opt opts.MarkPointStyle) SeriesOpts
WithMarkPointStyleOpts sets the style of the MarkPoint.
func WithPieChartOpts ¶
func WithPieChartOpts(opt opts.PieChart) SeriesOpts
WithPieChartOpts sets the PieChart option.
func WithRippleEffectOpts ¶
func WithRippleEffectOpts(opt opts.RippleEffect) SeriesOpts
WithRippleEffectOpts sets the ripple effect.
func WithScatterChartOpts ¶
func WithScatterChartOpts(opt opts.ScatterChart) SeriesOpts
WithScatterChartOpts sets the ScatterChart option.
func WithSunburstOpts ¶
func WithSunburstOpts(opt opts.SunburstChart) SeriesOpts
WithSunburstOpts sets the SunburstChart option.
func WithTreeMapOpts ¶
func WithTreeMapOpts(opt opts.TreeMapChart) SeriesOpts
WithTreeMapOpts sets the TreeMapChart options.
func WithTreeOpts ¶
func WithTreeOpts(opt opts.TreeChart) SeriesOpts
WithTreeOpts sets the TreeChart option.
func WithWorldCloudChartOpts ¶
func WithWorldCloudChartOpts(opt opts.WordCloudChart) SeriesOpts
WithWorldCloudChartOpts sets the WorldCloudChart option.
type SingleSeries ¶
type SingleSeries struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
// Rectangular charts
Stack string `json:"stack,omitempty"`
XAxisIndex int `json:"xAxisIndex,omitempty"`
YAxisIndex int `json:"yAxisIndex,omitempty"`
// Bar
BarGap string `json:"barGap,omitempty"`
BarCategoryGap string `json:"barCategoryGap,omitempty"`
ShowBackground bool `json:"showBackground,omitempty"`
RoundCap bool `json:"roundCap,omitempty"`
// Bar3D
Shading string `json:"shading,omitempty"`
// Graph
Links interface{} `json:"links,omitempty"`
Layout string `json:"layout,omitempty"`
Force interface{} `json:"force,omitempty"`
Categories interface{} `json:"categories,omitempty"`
Roam bool `json:"roam,omitempty"`
EdgeSymbol interface{} `json:"edgeSymbol,omitempty"`
EdgeSymbolSize interface{} `json:"edgeSymbolSize,omitempty"`
EdgeLabel interface{} `json:"edgeLabel,omitempty"`
Draggable bool `json:"draggable,omitempty"`
FocusNodeAdjacency bool `json:"focusNodeAdjacency,omitempty"`
// Line
Step interface{} `json:"step,omitempty"`
Smooth bool `json:"smooth,omitempty"`
ConnectNulls bool `json:"connectNulls,omitempty"`
ShowSymbol bool `json:"showSymbol"`
// Liquid
IsLiquidOutline bool `json:"outline,omitempty"`
IsWaveAnimation bool `json:"waveAnimation"`
// Map
MapType string `json:"map,omitempty"`
CoordSystem string `json:"coordinateSystem,omitempty"`
// Pie
RoseType interface{} `json:"roseType,omitempty"`
Center interface{} `json:"center,omitempty"`
Radius interface{} `json:"radius,omitempty"`
// Scatter
SymbolSize float32 `json:"symbolSize,omitempty"`
// Tree
Orient string `json:"orient,omitempty"`
ExpandAndCollapse bool `json:"expandAndCollapse,omitempty"`
InitialTreeDepth int `json:"initialTreeDepth,omitempty"`
Leaves interface{} `json:"leaves,omitempty"`
Left string `json:"left,omitempty"`
Right string `json:"right,omitempty"`
Top string `json:"top,omitempty"`
Bottom string `json:"bottom,omitempty"`
// TreeMap
LeafDepth int `json:"leafDepth,omitempty"`
Levels interface{} `json:"levels,omitempty"`
UpperLabel interface{} `json:"upperLabel,omitempty"`
// WordCloud
Shape string `json:"shape,omitempty"`
SizeRange []float32 `json:"sizeRange,omitempty"`
RotationRange []float32 `json:"rotationRange,omitempty"`
// Sunburst
NodeClick string `json:"nodeClick,omitempty"`
Sort string `json:"sort,omitempty"`
RenderLabelForZeroData bool `json:"renderLabelForZeroData"`
SelectedMode bool `json:"selectedMode"`
Animation bool `json:"animation"`
AnimationThreshold int `json:"animationThreshold,omitempty"`
AnimationDuration int `json:"animationDuration,omitempty"`
AnimationEasing string `json:"animationEasing,omitempty"`
AnimationDelay int `json:"animationDelay,omitempty"`
AnimationDurationUpdate int `json:"animationDurationUpdate,omitempty"`
AnimationEasingUpdate string `json:"animationEasingUpdate,omitempty"`
AnimationDelayUpdate int `json:"animationDelayUpdate,omitempty"`
// series data
Data interface{} `json:"data"`
// series options
*opts.Encode `json:"encode,omitempty"`
*opts.ItemStyle `json:"itemStyle,omitempty"`
*opts.Label `json:"label,omitempty"`
*opts.LabelLine `json:"labelLine,omitempty"`
*opts.Emphasis `json:"emphasis,omitempty"`
*opts.MarkLines `json:"markLine,omitempty"`
*opts.MarkPoints `json:"markPoint,omitempty"`
*opts.RippleEffect `json:"rippleEffect,omitempty"`
*opts.LineStyle `json:"lineStyle,omitempty"`
*opts.AreaStyle `json:"areaStyle,omitempty"`
*opts.TextStyle `json:"textStyle,omitempty"`
*opts.CircularStyle `json:"circular,omitempty"`
}
func (*SingleSeries) ConfigureSeriesOpts ¶
func (s *SingleSeries) ConfigureSeriesOpts(options ...SeriesOpts)
type Sunburst ¶
type Sunburst struct {
BaseConfiguration
BaseActions
}
Sunburst represents a sunburst chart.
func (*Sunburst) AddSeries ¶
func (c *Sunburst) AddSeries(name string, data []opts.SunBurstData, options ...SeriesOpts) *Sunburst
AddSeries adds new data sets.
func (*Sunburst) SetDispatchActions ¶
func (c *Sunburst) SetDispatchActions(actions ...GlobalActions) *Sunburst
SetDispatchActions sets actions for the Sunburst instance.
func (*Sunburst) SetGlobalOptions ¶
func (c *Sunburst) SetGlobalOptions(options ...GlobalOpts) *Sunburst
SetGlobalOptions sets options for the Pie instance.
type Surface3D ¶
type Surface3D struct {
Chart3D
}
Surface3D represents a 3D surface chart.
func (*Surface3D) AddSeries ¶
func (c *Surface3D) AddSeries(name string, data []opts.Chart3DData, options ...SeriesOpts) *Surface3D
AddSeries adds the new series.
type ThemeRiver ¶
type ThemeRiver struct {
BaseConfiguration
BaseActions
}
ThemeRiver represents a theme river chart.
func NewThemeRiver ¶
func NewThemeRiver() *ThemeRiver
NewThemeRiver creates a new theme river chart.
func (*ThemeRiver) AddSeries ¶
func (c *ThemeRiver) AddSeries(name string, data []opts.ThemeRiverData, options ...SeriesOpts) *ThemeRiver
AddSeries adds new data sets.
func (*ThemeRiver) SetDispatchActions ¶
func (c *ThemeRiver) SetDispatchActions(actions ...GlobalActions) *ThemeRiver
SetDispatchActions sets actions for the ThemeRiver instance.
func (*ThemeRiver) SetGlobalOptions ¶
func (c *ThemeRiver) SetGlobalOptions(options ...GlobalOpts) *ThemeRiver
SetGlobalOptions sets options for the ThemeRiver instance.
func (*ThemeRiver) Validate ¶
func (c *ThemeRiver) Validate()
Validate validates the given configuration.
type Tree ¶
type Tree struct {
BaseConfiguration
BaseActions
}
Tree represents a Tree chart.
func (*Tree) SetDispatchActions ¶
func (c *Tree) SetDispatchActions(actions ...GlobalActions) *Tree
SetDispatchActions sets actions for the Tree instance.
func (*Tree) SetGlobalOptions ¶
func (c *Tree) SetGlobalOptions(options ...GlobalOpts) *Tree
SetGlobalOptions sets options for the Tree instance.
type TreeMap ¶
type TreeMap struct {
BaseConfiguration
BaseActions
}
TreeMap represents a TreeMap chart.
func (*TreeMap) AddSeries ¶
func (c *TreeMap) AddSeries(name string, data []opts.TreeMapNode, options ...SeriesOpts) *TreeMap
AddSeries adds new data sets.
func (*TreeMap) SetDispatchActions ¶
func (c *TreeMap) SetDispatchActions(actions ...GlobalActions) *TreeMap
SetDispatchActions sets actions for the TreeMap instance.
func (*TreeMap) SetGlobalOptions ¶
func (c *TreeMap) SetGlobalOptions(options ...GlobalOpts) *TreeMap
SetGlobalOptions sets options for the TreeMap instance.
type WordCloud ¶
type WordCloud struct {
BaseConfiguration
BaseActions
}
WordCloud represents a word cloud chart.
func (*WordCloud) AddSeries ¶
func (c *WordCloud) AddSeries(name string, data []opts.WordCloudData, options ...SeriesOpts) *WordCloud
AddSeries adds new data sets.
func (*WordCloud) SetDispatchActions ¶
func (c *WordCloud) SetDispatchActions(actions ...GlobalActions) *WordCloud
SetDispatchActions sets actions for the WordCloud instance.
func (*WordCloud) SetGlobalOptions ¶
func (c *WordCloud) SetGlobalOptions(options ...GlobalOpts) *WordCloud
SetGlobalOptions sets options for the WordCloud instance.
type XYAxis ¶
XYAxis represent the X and Y axis in the rectangular coordinates.
func (*XYAxis) ExtendXAxis ¶
ExtendXAxis adds new X axes.
func (*XYAxis) ExtendYAxis ¶
ExtendYAxis adds new Y axes.