Skip to content

Commit 5452b63

Browse files
committed
boxmod, barmode, violinmode, etc
1 parent dd05d52 commit 5452b63

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

src/default_panels/StyleLayoutPanel.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
TextEditor,
1111
PlotlySection,
1212
TraceRequiredPanel,
13+
NumericFraction,
1314
} from '../components';
1415

1516
const StyleLayoutPanel = (props, {localize: _}) => (
@@ -36,6 +37,64 @@ const StyleLayoutPanel = (props, {localize: _}) => (
3637
{label: _('Disable'), value: false},
3738
]}
3839
/>
40+
41+
<PlotlySection name={_('Box Display Options')} attr="boxmode">
42+
<Radio
43+
label={_('Mode')}
44+
attr="boxmode"
45+
options={[
46+
{label: _('Overlay'), value: 'overlay'},
47+
{label: _('Group'), value: 'group'},
48+
]}
49+
/>
50+
<NumericFraction label={_('Gap Between Boxes')} attr="boxgap" />
51+
<NumericFraction
52+
label={_('Gap Between Boxes of Same Group')}
53+
attr="boxgroupgap"
54+
/>
55+
</PlotlySection>
56+
57+
<PlotlySection name={_('Bar Display Options')} attr="barmode">
58+
<Radio
59+
label={_('Mode')}
60+
attr="barmode"
61+
options={[
62+
{label: _('Overlay'), value: 'overlay'},
63+
{label: _('Group'), value: 'group'},
64+
{label: _('Stack'), value: 'stack'},
65+
{label: _('Relative'), value: 'relative'},
66+
]}
67+
/>
68+
<Radio
69+
label={_('Normalization for Bar Traces')}
70+
attr="barnorm"
71+
options={[
72+
{label: _('None'), value: ''},
73+
{label: _('Fraction'), value: 'fraction'},
74+
{label: _('Percent'), value: 'percent'},
75+
]}
76+
/>
77+
<NumericFraction label={_('Gap Between Bars')} attr="bargap" />
78+
<NumericFraction
79+
label={_('Gap Between Bars of Same Group')}
80+
attr="bargroupgap"
81+
/>
82+
</PlotlySection>
83+
<PlotlySection name={_('Violin Display Options')} attr="violinmode">
84+
<Radio
85+
label={_('Mode')}
86+
attr="violinmode"
87+
options={[
88+
{label: _('Overlay'), value: 'overlay'},
89+
{label: _('Group'), value: 'group'},
90+
]}
91+
/>
92+
<NumericFraction label={_('Gap Between Violins')} attr="violingap" />
93+
<NumericFraction
94+
label={_('Gap Between Violins of Same Group')}
95+
attr="violingroupgap"
96+
/>
97+
</PlotlySection>
3998
</PlotlyFold>
4099
<PlotlyFold name={_('Title and Fonts')}>
41100
<PlotlySection name={_('Title')} attr="title">

0 commit comments

Comments
 (0)