| 1 | package opts |
| 2 | |
| 3 | import "github.com/go-echarts/go-echarts/v2/types" |
| 4 | |
| 5 | // ParallelAxis is the option set for a parallel axis. |
| 6 | type ParallelAxis struct { |
| 7 | // Dimension index of coordinate axis. |
| 8 | Dim int `json:"dim,omitempty"` |
| 9 | |
| 10 | // Name of axis. |
| 11 | Name string `json:"name,omitempty"` |
| 12 | |
| 13 | // The maximum value of axis. |
| 14 | // It can be set to a special value 'dataMax' so that the minimum value on this axis is set to be the maximum label. |
| 15 | // It will be automatically computed to make sure axis tick is equally distributed when not set. |
| 16 | // In category axis, it can also be set as the ordinal number. |
| 17 | Max interface{} `json:"max,omitempty"` |
| 18 | |
| 19 | // Compulsively set segmentation interval for axis. |
| 20 | Inverse types.Bool `json:"inverse,omitempty"` |
| 21 | |
| 22 | // Location of axis name. Options: "start", "middle", "center", "end" |
| 23 | // default "end" |
| 24 | NameLocation string `json:"nameLocation,omitempty"` |
| 25 | |
| 26 | // Type of axis. |
| 27 | // Options: |
| 28 | // "value":Numerical axis, suitable for continuous data. |
| 29 | // "category" Category axis, suitable for discrete category data. Category data can be auto retrieved from series. |
| 30 | // "log" Log axis, suitable for log data. |
| 31 | Type string `json:"type,omitempty"` |
| 32 | |
| 33 | // Category data,works on (type: "category"). |
| 34 | Data interface{} `json:"data,omitempty"` |
| 35 | } |