| 1 | package opts |
| 2 | |
| 3 | import "github.com/go-echarts/go-echarts/v2/types" |
| 4 | |
| 5 | type RadarChart struct { |
| 6 | // ColorBy The policy to take color from option.color. Valid values: |
| 7 | // 'series': assigns the colors in the palette by series, so that all data in the same series are in the same color; |
| 8 | // 'data': assigns colors in the palette according to data items, with each data item using a different color. |
| 9 | ColorBy string |
| 10 | |
| 11 | // RadarIndex Index of radar component that radar chart uses. |
| 12 | RadarIndex int |
| 13 | // Icon types provided by ECharts includes |
| 14 | // 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none' |
| 15 | // Full documentation: https://echarts.apache.org/en/option.html#series-line.symbol |
| 16 | Symbol string |
| 17 | |
| 18 | // 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. |
| 19 | // Full documentation: https://echarts.apache.org/en/option.html#series-line.symbolSize |
| 20 | SymbolSize interface{} |
| 21 | |
| 22 | // SymbolKeepAspect is whether to keep aspect for symbols in the form of path://. |
| 23 | SymbolKeepAspect types.Bool |
| 24 | } |
| 25 | |
| 26 | // RadarData |
| 27 | // https://echarts.apache.org/en/option.html#series-radar |
| 28 | type RadarData struct { |
| 29 | // Name of data item. |
| 30 | Name string `json:"name,omitempty"` |
| 31 | |
| 32 | // Value of a single data item. |
| 33 | Value interface{} `json:"value,omitempty"` |
| 34 | } |