Skip to content

Commit 45314ee

Browse files
pie titles
1 parent bdf53a7 commit 45314ee

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/components/containers/TraceMarkerSection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TraceMarkerSection extends Component {
1818
if (['bar', 'histogram'].includes(traceType)) {
1919
this.name = _('Bars');
2020
} else if (traceType === 'pie') {
21-
this.name = _('Segments');
21+
this.name = _('Pie Segments');
2222
} else {
2323
this.name = _('Points');
2424
}

src/default_panels/StyleTracesPanel.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,24 @@ const StyleTracesPanel = (props, {localize: _}) => (
8484
/>
8585
</LayoutSection>
8686
</TraceTypeSection>
87+
<PlotlySection name={_('Pie Title')} attr="title">
88+
<TextEditor label={_('Name')} attr="title" />
89+
<Dropdown
90+
label={'Title Position'}
91+
attr="titleposition"
92+
options={[
93+
{label: _('Top Left'), value: 'top left'},
94+
{label: _('Top Center'), value: 'top center'},
95+
{label: _('Top Right'), value: 'top right'},
96+
{label: _('Middle Center'), value: 'middle center'},
97+
{label: _('Bottom Left'), value: 'bottom left'},
98+
{label: _('Bottom Center'), value: 'bottom center'},
99+
{label: _('Bottom Right'), value: 'bottom right'},
100+
]}
101+
/>
102+
<FontSelector label={_('Typeface')} attr="titlefont.family" clearable={false} />
103+
<Numeric label={_('Font Size')} attr="titlefont.size" units="px" />
104+
</PlotlySection>
87105
<PlotlySection name={_('Values')}>
88106
<BinningDropdown label={_('Histogram Function')} attr="histfunc" />
89107
<Dropdown

0 commit comments

Comments
 (0)