Skip to content

Commit 0831190

Browse files
nicolaskruchtenVeraZab
authored andcommitted
layout colorscales
1 parent d444eca commit 0831190

1 file changed

Lines changed: 23 additions & 15 deletions

File tree

src/default_panels/StyleLayoutPanel.js

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
33
import {
44
ColorPicker,
55
ColorwayPicker,
6+
ColorscalePicker,
67
Dropdown,
78
FontSelector,
89
PlotlyFold,
@@ -22,21 +23,28 @@ const StyleLayoutPanel = (props, {localize: _}) => (
2223
<PlotlyFold name={_('Defaults')}>
2324
<ColorPicker label={_('Plot Background')} attr="plot_bgcolor" />
2425
<ColorPicker label={_('Margin Color')} attr="paper_bgcolor" />
25-
<ColorwayPicker label={_('Base Colors')} attr="colorway" />
26-
<FontSelector label={_('Typeface')} attr="font.family" clearable={false} />
27-
<Numeric label={_('Font Size')} attr="font.size" units="px" />
28-
<ColorPicker label={_('Font Color')} attr="font.color" />
29-
<Dropdown
30-
label={_('Number format')}
31-
attr="separators"
32-
options={[
33-
{label: _('1,234.56'), value: '.,'},
34-
{label: _('1 234.56'), value: ', '},
35-
{label: _('1 234,56'), value: ', '},
36-
{label: _('1.234,56'), value: ',.'},
37-
]}
38-
clearable={false}
39-
/>
26+
<PlotlySection name={_('Color Scales')} attr="colorway">
27+
<ColorwayPicker label={_('Categorical')} attr="colorway" />
28+
<ColorscalePicker label={_('Sequential')} attr="colorscale.sequential" />
29+
<ColorscalePicker label={_('Diverging')} attr="colorscale.diverging" />
30+
<ColorscalePicker label={_('Sequential Negative')} attr="colorscale.sequentialminus" />
31+
</PlotlySection>
32+
<PlotlySection name={_('Text')} attr="font.family">
33+
<FontSelector label={_('Typeface')} attr="font.family" clearable={false} />
34+
<Numeric label={_('Font Size')} attr="font.size" units="px" />
35+
<ColorPicker label={_('Font Color')} attr="font.color" />
36+
<Dropdown
37+
label={_('Number format')}
38+
attr="separators"
39+
options={[
40+
{label: _('1,234.56'), value: '.,'},
41+
{label: _('1 234.56'), value: ', '},
42+
{label: _('1 234,56'), value: ', '},
43+
{label: _('1.234,56'), value: ',.'},
44+
]}
45+
clearable={false}
46+
/>
47+
</PlotlySection>
4048
</PlotlyFold>
4149

4250
<PlotlyFold name={_('Title')}>

0 commit comments

Comments
 (0)