|
9 | 9 | 'use strict';
|
10 | 10 |
|
11 | 11 | var boxLayoutAttrs = require('../box/layout_attributes');
|
| 12 | +var extendFlat = require('../../lib').extendFlat; |
12 | 13 |
|
13 |
| -// TODO update descriptions |
14 | 14 | module.exports = {
|
15 |
| - violinmode: boxLayoutAttrs.boxmode, |
16 |
| - violingap: boxLayoutAttrs.boxgap, |
17 |
| - violingroupgap: boxLayoutAttrs.boxgroupgap |
| 15 | + violinmode: extendFlat({}, boxLayoutAttrs.boxmode, { |
| 16 | + description: [ |
| 17 | + 'Determines how violins at the same location coordinate', |
| 18 | + 'are displayed on the graph.', |
| 19 | + 'If *group*, the violins are plotted next to one another', |
| 20 | + 'centered around the shared location.', |
| 21 | + 'If *overlay*, the violins are plotted over one another,', |
| 22 | + 'you might need to set *opacity* to see them multiple violins.' |
| 23 | + ].join(' ') |
| 24 | + }), |
| 25 | + violingap: extendFlat({}, boxLayoutAttrs.boxgap, { |
| 26 | + description: [ |
| 27 | + 'Sets the gap (in plot fraction) between violins of', |
| 28 | + 'adjacent location coordinates.' |
| 29 | + ].join(' ') |
| 30 | + }), |
| 31 | + violingroupgap: extendFlat({}, boxLayoutAttrs.boxgroupgap, { |
| 32 | + description: [ |
| 33 | + 'Sets the gap (in plot fraction) between violins of', |
| 34 | + 'the same location coordinate.' |
| 35 | + ].join(' ') |
| 36 | + }) |
18 | 37 | };
|
0 commit comments