@@ -33,7 +33,6 @@ import {
3333 GroupCreator ,
3434} from '../components' ;
3535import {
36- BinningNumeric ,
3736 BinningDropdown ,
3837 NumericReciprocal ,
3938 ShowInLegend ,
@@ -85,6 +84,24 @@ const StyleTracesPanel = (props, {localize: _}) => (
8584 />
8685 </ LayoutSection >
8786 </ 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 >
88105 < PlotlySection name = { _ ( 'Values' ) } >
89106 < BinningDropdown label = { _ ( 'Histogram Function' ) } attr = "histfunc" />
90107 < Dropdown
@@ -176,23 +193,14 @@ const StyleTracesPanel = (props, {localize: _}) => (
176193 />
177194 </ PlotlySection >
178195 < PlotlySection name = { _ ( 'Binning' ) } >
179- < Radio
180- label = { _ ( 'X Binning' ) }
181- attr = "autobinx"
182- options = { [ { label : _ ( 'Auto' ) , value : true } , { label : _ ( 'Custom' ) , value : false } ] }
183- />
184- < BinningNumeric label = { _ ( 'X Bin Start' ) } attr = "xbins.start" axis = "x" />
185- < BinningNumeric label = { _ ( 'X Bin End' ) } attr = "xbins.end" axis = "x" />
186- < BinningNumeric label = { _ ( 'X Bin Size' ) } attr = "xbins.size" axis = "x" />
196+ < Numeric label = { _ ( 'X Bin Start' ) } attr = "xbins.start" axis = "x" />
197+ < Numeric label = { _ ( 'X Bin End' ) } attr = "xbins.end" axis = "x" />
198+ < Numeric label = { _ ( 'X Bin Size' ) } attr = "xbins.size" axis = "x" />
187199 < Numeric label = { _ ( 'Max X Bins' ) } attr = "nbinsx" />
188- < Radio
189- label = { _ ( 'Y Binning' ) }
190- attr = "autobiny"
191- options = { [ { label : _ ( 'Auto' ) , value : true } , { label : _ ( 'Custom' ) , value : false } ] }
192- />
193- < BinningNumeric label = { _ ( 'Y Bin Start' ) } attr = "ybins.start" axis = "y" />
194- < BinningNumeric label = { _ ( 'Y Bin End' ) } attr = "ybins.end" axis = "y" />
195- < BinningNumeric label = { _ ( 'Y Bin Size' ) } attr = "ybins.size" axis = "y" />
200+
201+ < Numeric label = { _ ( 'Y Bin Start' ) } attr = "ybins.start" axis = "y" />
202+ < Numeric label = { _ ( 'Y Bin End' ) } attr = "ybins.end" axis = "y" />
203+ < Numeric label = { _ ( 'Y Bin Size' ) } attr = "ybins.size" axis = "y" />
196204 < Numeric label = { _ ( 'Max Y Bins' ) } attr = "nbinsy" />
197205 </ PlotlySection >
198206 < PlotlySection label = { _ ( 'Bar Position' ) } >
@@ -602,6 +610,11 @@ const StyleTracesPanel = (props, {localize: _}) => (
602610 </ PlotlySection >
603611 < PlotlySection name = { _ ( 'On Hover' ) } >
604612 < HoverInfo attr = "hoverinfo" label = { _ ( 'Values Shown On Hover' ) } />
613+ < Radio
614+ label = { _ ( 'Split labels' ) }
615+ attr = "hoverlabel.split"
616+ options = { [ { label : _ ( 'Yes' ) , value : true } , { label : _ ( 'No' ) , value : false } ] }
617+ />
605618 < VisibilitySelect
606619 attr = "contour.show"
607620 label = { _ ( 'Show Contour' ) }
0 commit comments