Debian Codegraph @

opts/axis_pointer.go

raw symbols SCIP
1 package opts
2
3 import "github.com/go-echarts/go-echarts/v2/types"
4
5 // AxisPointer is the option set for an axisPointer component
6 // https://echarts.apache.org/en/option.html#axisPointer
7 type AxisPointer struct {
8 // Indicator type.
9 // Options:
10 // - 'line' line indicator.
11 // - 'shadow' shadow crosshair indicator.
12 // - 'none' no indicator displayed.
13 // - 'cross' crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes.
14 Type string `json:"type,omitempty"`
15
16 // Whether snap to point automatically. The default value is auto determined.
17 // This feature usually makes sense in value axis and time axis, where tiny points can be seeked automatically.
18 Snap types.Bool `json:"snap,omitempty"`
19
20 Link []AxisPointerLink `json:"link,omitempty"`
21
22 Axis string `json:"axis,omitempty"`
23
24 Show types.Bool `json:"show,omitempty"`
25
26 Label *Label `json:"label,omitempty"`
27 }
28
29 type AxisPointerLink struct {
30 XAxisIndex []int `json:"xAxisIndex,omitempty"`
31 YAxisIndex []int `json:"yAxisIndex,omitempty"`
32 XAxisName string `json:"xAxisName,omitempty"`
33 YAxisName string `json:"yAxisName,omitempty"`
34 }