-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathlayout_attributes.js
59 lines (57 loc) · 1.79 KB
/
layout_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
/**
* Copyright 2012-2015, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
barmode: {
valType: 'enumerated',
values: ['stack', 'group', 'overlay'],
dflt: 'group',
role: 'info',
description: [
'Determines how bars at the same location coordinate',
'are displayed on the graph.',
'With *stack*, the bars are stacked on top of one another',
'With *group*, the bars are plotted next to one another',
'centered around the shared location.',
'With *overlay*, the bars are plotted over one another,',
'you might need to an *opacity* to see multiple bars.'
].join(' ')
},
barnorm: {
valType: 'enumerated',
values: ['', 'fraction', 'percent'],
dflt: '',
role: 'info',
description: [
'Sets the normalization for bar traces on the graph.',
'With *fraction*, the value of each bar is divide by the sum of the',
'values at the location coordinate.',
'With *percent*, the results form *fraction* are presented in percents.'
].join(' ')
},
bargap: {
valType: 'number',
min: 0,
max: 1,
role: 'style',
description: [
'Sets the gap (in plot fraction) between bars of',
'adjacent location coordinates.'
].join(' ')
},
bargroupgap: {
valType: 'number',
min: 0,
max: 1,
dflt: 0,
role: 'style',
description: [
'Sets the gap (in plot fraction) between bars of',
'the same location coordinate.'
].join(' ')
}
};