Debian Codegraph @

opts/series_line.go

raw symbols SCIP
1 package opts
2
3 import "github.com/go-echarts/go-echarts/v2/types"
4
5 // LineChart is the options set for a line chart.
6 // https://echarts.apache.org/en/option.html#series-line
7 type LineChart struct {
8 // ColorBy The policy to take color from option.color. Valid values:
9 // 'series': assigns the colors in the palette by series, so that all data in the same series are in the same color;
10 // 'data': assigns colors in the palette according to data items, with each data item using a different color.
11 ColorBy string
12
13 // CoordinateSystem The coordinate used in the series, whose options are:
14 //'cartesian2d' Use a two-dimensional rectangular coordinate (also known as Cartesian coordinate), with xAxisIndex and
15 // yAxisIndex to assign the corresponding axis component.
16 //
17 // 'polar' Use polar coordinates, with polarIndex to assign the corresponding polar coordinate component.
18 CoordSystem string
19
20 // Index of x-axis to combine with, which is useful for multiple x axes in one chart.
21 XAxisIndex int
22
23 // Index of y-axis to combine with, which is useful for multiple y axes in one chart.
24 YAxisIndex int
25
26 // Index of polar coordinate to combine with, which is useful for multiple polar axes in one chart.
27 PolarIndex int
28
29 // Icon types provided by ECharts includes
30 // 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none'
31 // Full documentation: https://echarts.apache.org/en/option.html#series-line.symbol
32 Symbol string
33
34 // symbol size. It can be set to single numbers like 10, or use an array to represent width and height. For example, [20, 10] means symbol width is 20, and height is10.
35 // Full documentation: https://echarts.apache.org/en/option.html#series-line.symbolSize
36 SymbolSize interface{}
37
38 // SymbolKeepAspect is whether to keep aspect for symbols in the form of path://.
39 SymbolKeepAspect types.Bool
40
41 // Whether to show symbol. It would be shown during tooltip hover.
42 ShowSymbol types.Bool
43
44 // If stack the value. On the same category axis, the series with the same stack name would be put on top of each other.
45 // The effect of the below example could be seen through stack switching of toolbox on the top right corner:
46 Stack string
47
48 // Whether to show as smooth curve.
49 Smooth types.Bool
50
51 // Whether to connect the line across null points.
52 ConnectNulls types.Bool
53
54 // Whether to show as a step line. It can be true, false. Or 'start', 'middle', 'end'.
55 // Which will configure the turn point of step line.
56 Step interface{}
57 }
58
59 // LineData
60 // https://echarts.apache.org/en/option.html#series-line.data
61 type LineData struct {
62 // Name of data item.
63 Name string `json:"name,omitempty"`
64
65 // Value of a single data item.
66 Value interface{} `json:"value,omitempty"`
67
68 // Symbol of single data.
69 // Icon types provided by ECharts includes 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none'
70 // It can be set to an image with 'image://url' , in which URL is the link to an image, or dataURI of an image.
71 Symbol string `json:"symbol,omitempty"`
72
73 // single data symbol size. It can be set to single numbers like 10, or
74 // use an array to represent width and height. For example, [20, 10] means symbol width is 20, and height is10
75 SymbolSize int `json:"symbolSize,omitempty"`
76
77 // Index of x axis to combine with, which is useful for multiple x axes in one chart.
78 XAxisIndex int `json:"XAxisIndex,omitempty"`
79
80 // Index of y axis to combine with, which is useful for multiple y axes in one chart.
81 YAxisIndex int `json:"YAxisIndex,omitempty"`
82 }