Debian Codegraph @

opts/data_zoom.go

raw symbols SCIP
1 package opts
2
3 // DataZoom is the option set for a zoom component.
4 // dataZoom component is used for zooming a specific area, which enables user to
5 // investigate data in detail, or get an overview of the data, or get rid of outlier points.
6 // https://echarts.apache.org/en/option.html#dataZoom
7 type DataZoom struct {
8 // Data zoom component of inside type, Options: "inside", "slider"
9 Type string `json:"type" default:"inside"`
10
11 // The start percentage of the window out of the data extent, in the range of 0 ~ 100.
12 // default 0
13 Start float32 `json:"start,omitempty"`
14
15 // The end percentage of the window out of the data extent, in the range of 0 ~ 100.
16 // default 100
17 End float32 `json:"end,omitempty"`
18
19 // Specify whether the layout of dataZoom component is horizontal or vertical. What's more, it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system.
20 //
21 // Valid values:
22 // 'horizontal': horizontal.
23 // 'vertical': vertical.
24 Orient string `json:"orient,omitempty"`
25
26 // Specify the frame rate of views refreshing, with unit millisecond (ms).
27 // If animation set as true and animationDurationUpdate set as bigger than 0,
28 // you can keep throttle as the default value 100 (or set it as a value bigger than 0),
29 // otherwise it might be not smooth when dragging.
30 // If animation set as false or animationDurationUpdate set as 0, and data size is not very large,
31 // and it seems to be not smooth when dragging, you can set throttle as 0 to improve that.
32 Throttle float32 `json:"throttle,omitempty"`
33
34 // Specify which xAxis is/are controlled by the dataZoom-inside when Cartesian coordinate system is used.
35 // By default the first xAxis that parallel to dataZoom are controlled when dataZoom-inside.
36 // Orient is set as 'horizontal'. But it is recommended to specify it explicitly but not use default value.
37 // If it is set as a single number, one axis is controlled, while if it is set as an Array ,
38 // multiple axes are controlled.
39 XAxisIndex interface{} `json:"xAxisIndex,omitempty"`
40
41 // Specify which yAxis is/are controlled by the dataZoom-inside when Cartesian coordinate system is used.
42 // By default the first yAxis that parallel to dataZoom are controlled when dataZoom-inside.
43 // Orient is set as 'vertical'. But it is recommended to specify it explicitly but not use default value.
44 // If it is set as a single number, one axis is controlled, while if it is set as an Array ,
45 // multiple axes are controlled.
46 YAxisIndex interface{} `json:"yAxisIndex,omitempty"`
47
48 // LabelFormatter is the formatter tool for the label.
49 //
50 // If it is a string, it will be a template. For instance, aaaa{value}bbbb, where {value} will be replaced by the value of actual data value.
51 // It can also be a callback function. For example:
52 //
53 // /** @param {*} value If axis.type is 'category', `value` is the index of axis.data.
54 // * else `value` is current value.
55 // * @param {string} valueStr Inner formatted string.
56 // * @return {string} Returns the label formatted.
57 // labelFormatter: function (value, valueStr) {
58 // return 'aaa' + value + 'bbb';
59 // }
60 LabelFormatter string `json:"labelFormatter,omitempty"`
61
62 // FilterMode Generally dataZoom component zoom or roam coordinate system
63 // https://echarts.apache.org/en/option.html#dataZoom-inside.filterMode
64 // through data filtering and set the windows of axes internally.
65 // Possible values:
66 //'filter': data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered if one of the relevant dimensions is out of the window.
67 //'weakFilter': data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window.
68 //'empty': data that outside the window will be set to NaN, which will not lead to changes of windows of other axes.
69 //'none': Do not filter data.
70 FilterMode string `json:"filterMode,omitempty"`
71 }