| 1 | package opts |
| 2 | |
| 3 | import "github.com/go-echarts/go-echarts/v2/types" |
| 4 | |
| 5 | // EffectScatterChart is the option set for a effectScatter chart. |
| 6 | // https://echarts.apache.org/en/option.html#series-effectScatter |
| 7 | type EffectScatterChart 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 x axis to combine with, which is useful for multiple y axes in one chart. |
| 24 | YAxisIndex int |
| 25 | |
| 26 | // Icon types provided by ECharts includes |
| 27 | // 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none' |
| 28 | // Full documentation: https://echarts.apache.org/en/option.html#series-line.symbol |
| 29 | Symbol string |
| 30 | |
| 31 | // 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. |
| 32 | // Full documentation: https://echarts.apache.org/en/option.html#series-line.symbolSize |
| 33 | SymbolSize interface{} |
| 34 | |
| 35 | // SymbolKeepAspect is whether to keep aspect for symbols in the form of path://. |
| 36 | SymbolKeepAspect types.Bool |
| 37 | } |
| 38 | |
| 39 | // EffectScatterData |
| 40 | // https://echarts.apache.org/en/option.html#series-effectScatter.data |
| 41 | type EffectScatterData struct { |
| 42 | // Name of data item. |
| 43 | Name string `json:"name,omitempty"` |
| 44 | |
| 45 | // Value of a single data item. |
| 46 | Value interface{} `json:"value,omitempty"` |
| 47 | } |