-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathattributes.js
124 lines (118 loc) · 3.53 KB
/
attributes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
'use strict';
module.exports = {
visible: {
valType: 'boolean',
editType: 'calc',
description: [
'Determines whether or not this set of error bars is visible.'
].join(' ')
},
type: {
valType: 'enumerated',
values: ['percent', 'constant', 'sqrt', 'data'],
editType: 'calc',
description: [
'Determines the rule used to generate the error bars.',
'If *constant`, the bar lengths are of a constant value.',
'Set this constant in `value`.',
'If *percent*, the bar lengths correspond to a percentage of',
'underlying data. Set this percentage in `value`.',
'If *sqrt*, the bar lengths correspond to the square of the',
'underlying data.',
'If *data*, the bar lengths are set with data set `array`.'
].join(' ')
},
symmetric: {
valType: 'boolean',
editType: 'calc',
description: [
'Determines whether or not the error bars have the same length',
'in both direction',
'(top/bottom for vertical bars, left/right for horizontal bars.'
].join(' ')
},
array: {
valType: 'data_array',
editType: 'calc',
description: [
'Sets the data corresponding the length of each error bar.',
'Values are plotted relative to the underlying data.'
].join(' ')
},
arrayminus: {
valType: 'data_array',
editType: 'calc',
description: [
'Sets the data corresponding the length of each error bar in the',
'bottom (left) direction for vertical (horizontal) bars',
'Values are plotted relative to the underlying data.'
].join(' ')
},
value: {
valType: 'number',
min: 0,
dflt: 10,
editType: 'calc',
description: [
'Sets the value of either the percentage',
'(if `type` is set to *percent*) or the constant',
'(if `type` is set to *constant*) corresponding to the lengths of',
'the error bars.'
].join(' ')
},
valueminus: {
valType: 'number',
min: 0,
dflt: 10,
editType: 'calc',
description: [
'Sets the value of either the percentage',
'(if `type` is set to *percent*) or the constant',
'(if `type` is set to *constant*) corresponding to the lengths of',
'the error bars in the',
'bottom (left) direction for vertical (horizontal) bars'
].join(' ')
},
traceref: {
valType: 'integer',
min: 0,
dflt: 0,
editType: 'style'
},
tracerefminus: {
valType: 'integer',
min: 0,
dflt: 0,
editType: 'style'
},
copy_ystyle: {
valType: 'boolean',
editType: 'plot'
},
copy_zstyle: {
valType: 'boolean',
editType: 'style'
},
color: {
valType: 'color',
editType: 'style',
description: 'Sets the stroke color of the error bars.'
},
thickness: {
valType: 'number',
min: 0,
dflt: 2,
editType: 'style',
description: 'Sets the thickness (in px) of the error bars.'
},
width: {
valType: 'number',
min: 0,
editType: 'plot',
description: [
'Sets the width (in px) of the cross-bar at both ends',
'of the error bars.'
].join(' ')
},
editType: 'calc',
};