Debian Codegraph @

opts/polar.go

raw symbols SCIP
1 package opts
2
3 import "github.com/go-echarts/go-echarts/v2/types"
4
5 // Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis.
6 type Polar struct {
7 ID string `json:"id,omitempty"`
8
9 // Zlevel value of all graphical elements in .
10 // Zlevel is used to make layers with Canvas.
11 // Graphical elements with different zlevel values will be placed in different Canvases, which is a common optimization technique.
12 // Canvases with bigger zlevel will be placed on Canvases with smaller zlevel.
13
14 Zlevel int `json:"zlevel,omitempty"`
15
16 // Z value of all graphical elements in , which controls order of drawing graphical components.
17 // Components with smaller z values may be overwritten by those with larger z values.
18 // Z has a lower priority to Zlevel, and will not create new Canvas.
19 Z int `json:"z,omitempty"`
20
21 // Center position of Polar coordinate, the first of which is the horizontal position, and the second is the vertical position.
22 // Percentage is supported. When set in percentage, the item is relative to the container width, and the second item to the height.
23 // Example:
24 // Set to absolute pixel values
25 // center: [400, 300]
26 // Set to relative percent
27 // center: ['50%', '50%']
28 Center []string `json:"center,omitempty"`
29
30 // Radius of Polar coordinate. Value can be:
31 Radius []string `json:"radius,omitempty"`
32
33 // Tooltip settings in the coordinate system component.
34 Tooltip Tooltip `json:"tooltip,omitempty"`
35 }
36
37 type PolarAxisBase struct {
38 ID string `json:"id,omitempty"`
39 // PolarIndex Index of radial axis in polar coordinate. It's the first axis by default.
40 PolarIndex int `json:"polarIndex,omitempty"`
41 // Type of axis.
42 // Option:
43 // 'value' Numerical axis, suitable for continuous data.
44 // 'category' Category axis, suitable for discrete category data.
45 // 'time' Time axis, suitable for continuous time series data.
46 // 'log' Log axis, suitable for log data.
47 Type string `json:"type,omitempty"`
48 StartAngle float64 `json:"startAngle,omitempty"`
49 BoundaryGap types.Bool `json:"boundaryGap,omitempty"`
50 Min float64 `json:"min,omitempty"`
51 Max float64 `json:"max,omitempty"`
52 Scale types.Bool `json:"scale,omitempty"`
53 SplitNumber int `json:"splitNumber,omitempty"`
54 MinInterval float64 `json:"minInterval,omitempty"`
55 MaxInterval float64 `json:"maxInterval,omitempty"`
56 Interval float64 `json:"interval,omitempty"`
57 // LogBase Base of logarithm, which is valid only for numeric axes with type: 'log'.
58 LogBase float64 `json:"logBase,omitempty"`
59 // Silent Set this to true, to prevent interaction with the axis.
60 Silent types.Bool `json:"silent,omitempty"`
61 // TriggerEvent Set this to true to enable triggering events.
62 // Parameters of the event include:
63 //{
64 // // Component type: xAxis, yAxis, radiusAxis, angleAxis
65 // // Each of which has an attribute for index, e.g., xAxisIndex for xAxis
66 // componentType: string,
67 // // Value on axis before being formatted.
68 // // Click on value label to trigger event.
69 // value: '',
70 // // Name of axis.
71 // // Click on laben name to trigger event.
72 // name: ''
73 //}
74 TriggerEvent types.Bool `json:"triggerEvent,omitempty"`
75 }