@@ -91,38 +91,44 @@ const StyleTracesPanel = (props, {localize: _}) => (
91
91
< Numeric label = { _ ( 'Max Tube segments' ) } attr = "maxdisplayed" />
92
92
</ PlotlySection >
93
93
< MultiColorPicker label = { _ ( 'Color' ) } attr = "color" />
94
- < TraceTypeSection name = { _ ( 'Waterfall' ) } traceTypes = { [ 'waterfall' ] } mode = "trace" >
95
- < LayoutSection attr = "name" >
96
- < Radio
97
- label = { _ ( 'Mode' ) }
98
- attr = "waterfallmode"
99
- options = { [ { label : _ ( 'Group' ) , value : 'group' } , { label : _ ( 'Overlay' ) , value : 'overlay' } ] }
100
- />
101
- < NumericFraction label = { _ ( 'Gap' ) } attr = "waterfallgap" />
102
- < NumericFraction label = { _ ( 'Group gap' ) } attr = "waterfallgroupgap" />
103
- </ LayoutSection >
104
- </ TraceTypeSection >
105
- < TraceTypeSection name = { _ ( 'Pie Colors' ) } traceTypes = { [ 'pie' ] } mode = "trace" >
94
+ < TraceTypeSection
95
+ name = { _ ( 'Segment Colors' ) }
96
+ traceTypes = { [ 'pie' , 'sunburst' , 'funnelarea' ] }
97
+ mode = "trace"
98
+ >
106
99
< LayoutSection attr = "name" >
107
100
< ColorwayPicker label = { _ ( 'Colors' ) } attr = "piecolorway" />
108
101
< Radio
109
102
label = { _ ( 'Extended Colors' ) }
110
103
attr = "extendpiecolors"
111
104
options = { [ { label : _ ( 'On' ) , value : true } , { label : _ ( 'Off' ) , value : false } ] }
112
105
/>
113
- </ LayoutSection >
114
- </ TraceTypeSection >
115
- < TraceTypeSection name = { _ ( 'Sunburst Colors' ) } traceTypes = { [ 'sunburst' ] } mode = "trace" >
116
- < LayoutSection attr = "name" >
117
106
< ColorwayPicker label = { _ ( 'Colors' ) } attr = "sunburstcolorway" />
118
107
< Radio
119
108
label = { _ ( 'Extended Colors' ) }
120
109
attr = "extendsunburstcolors"
121
110
options = { [ { label : _ ( 'On' ) , value : true } , { label : _ ( 'Off' ) , value : false } ] }
122
111
/>
112
+ < ColorwayPicker label = { _ ( 'Colors' ) } attr = "funnelareacolorway" />
113
+ < Radio
114
+ label = { _ ( 'Extended Colors' ) }
115
+ attr = "extendfunnelareacolors"
116
+ options = { [ { label : _ ( 'On' ) , value : true } , { label : _ ( 'Off' ) , value : false } ] }
117
+ />
123
118
</ LayoutSection >
124
119
</ TraceTypeSection >
125
- < PlotlySection name = { _ ( 'Pie Title' ) } attr = "title.text" >
120
+ < PlotlySection name = { _ ( 'Funnel Dimensions' ) } traceTypes = { [ 'funnelarea' ] } attr = "aspectratio" >
121
+ < Numeric
122
+ label = { _ ( 'Aspect Ratio' ) }
123
+ attr = "aspectratio"
124
+ step = { 0.01 }
125
+ min = { 0 }
126
+ max = { 2 }
127
+ showSlider
128
+ />
129
+ < NumericFraction label = { _ ( 'Base Ratio' ) } attr = "baseratio" />
130
+ </ PlotlySection >
131
+ < PlotlySection name = { _ ( 'Subplot Title' ) } attr = "title.text" >
126
132
< TextEditor label = { _ ( 'Name' ) } attr = "title.text" />
127
133
< Dropdown
128
134
label = { 'Title Position' }
@@ -231,7 +237,7 @@ const StyleTracesPanel = (props, {localize: _}) => (
231
237
</ PlotlySection >
232
238
< TraceTypeSection
233
239
name = { _ ( 'Bar Grouping, Sizing and Spacing' ) }
234
- traceTypes = { [ 'bar' , 'histogram' ] }
240
+ traceTypes = { [ 'bar' , 'histogram' , 'funnel' , 'waterfall' ] }
235
241
mode = "trace"
236
242
>
237
243
< LayoutSection attr = "name" >
@@ -258,6 +264,32 @@ const StyleTracesPanel = (props, {localize: _}) => (
258
264
/>
259
265
< NumericFractionInverse label = { _ ( 'Bar Width' ) } attr = "bargap" />
260
266
< NumericFraction label = { _ ( 'Bar Padding' ) } attr = "bargroupgap" />
267
+
268
+ < Dropdown
269
+ label = { _ ( 'Bar Mode' ) }
270
+ attr = "funnelmode"
271
+ options = { [
272
+ { label : _ ( 'Grouped' ) , value : 'group' } ,
273
+ { label : _ ( 'Stacked' ) , value : 'stack' } ,
274
+ { label : _ ( 'Overlaid' ) , value : 'overlay' } ,
275
+ ] }
276
+ clearable = { false }
277
+ />
278
+ < NumericFractionInverse label = { _ ( 'Bar Width' ) } attr = "funnelgap" />
279
+ < NumericFraction label = { _ ( 'Bar Padding' ) } attr = "funnelgroupgap" />
280
+
281
+ < Dropdown
282
+ label = { _ ( 'Bar Mode' ) }
283
+ attr = "waterfallmode"
284
+ options = { [
285
+ { label : _ ( 'Grouped' ) , value : 'group' } ,
286
+ { label : _ ( 'Stacked' ) , value : 'stack' } ,
287
+ { label : _ ( 'Overlaid' ) , value : 'overlay' } ,
288
+ ] }
289
+ clearable = { false }
290
+ />
291
+ < NumericFractionInverse label = { _ ( 'Bar Width' ) } attr = "waterfallgap" />
292
+ < NumericFraction label = { _ ( 'Bar Padding' ) } attr = "waterfallgroupgap" />
261
293
</ LayoutSection >
262
294
</ TraceTypeSection >
263
295
< PlotlySection name = { _ ( 'Binning' ) } >
@@ -363,6 +395,60 @@ const StyleTracesPanel = (props, {localize: _}) => (
363
395
< MultiColorPicker label = { _ ( 'Border Color' ) } attr = "marker.line.color" />
364
396
< Numeric label = { _ ( 'Max Number of Points' ) } attr = "marker.maxdisplayed" />
365
397
</ TraceMarkerSection >
398
+ < PlotlySection name = { _ ( 'Connector Styles' ) } >
399
+ < Radio
400
+ attr = "connector.visible"
401
+ options = { [ { label : _ ( 'Show' ) , value : true } , { label : _ ( 'Hide' ) , value : false } ] }
402
+ />
403
+ < MultiColorPicker label = { _ ( 'Fill Color' ) } attr = "connector.fillcolor" />
404
+ < Numeric label = { _ ( 'Line Width' ) } attr = "connector.line.width" />
405
+ < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "connector.line.color" />
406
+ < LineDashSelector label = { _ ( 'Line Type' ) } attr = "connector.line.dash" />
407
+ < Dropdown
408
+ label = { _ ( 'Line Shape' ) }
409
+ options = { [
410
+ { label : _ ( 'Spanning' ) , value : 'spanning' } ,
411
+ { label : _ ( 'Between' ) , value : 'between' } ,
412
+ ] }
413
+ attr = "connector.mode"
414
+ clearable = { false }
415
+ />
416
+ </ PlotlySection >
417
+ < PlotlySection name = { _ ( 'Increasing Marker Styles' ) } >
418
+ < TextEditor label = { _ ( 'Name' ) } attr = "increasing.name" richTextOnly />
419
+ < Numeric label = { _ ( 'Width' ) } attr = "increasing.line.width" />
420
+ < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "increasing.line.color" />
421
+ < MultiColorPicker label = { _ ( 'Marker Color' ) } attr = "increasing.marker.color" />
422
+ < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "increasing.marker.line.color" />
423
+ < Numeric label = { _ ( 'Line Width' ) } attr = "increasing.marker.line.width" />
424
+ < MultiColorPicker label = { _ ( 'Fill Color' ) } attr = "increasing.fillcolor" />
425
+ < LineDashSelector label = { _ ( 'Type' ) } attr = "increasing.line.dash" />
426
+ < Radio
427
+ label = { _ ( 'Show in Legend' ) }
428
+ attr = "increasing.showlegend"
429
+ options = { [ { label : _ ( 'Show' ) , value : true } , { label : _ ( 'Hide' ) , value : false } ] }
430
+ />
431
+ </ PlotlySection >
432
+ < PlotlySection name = { _ ( 'Decreasing Marker Styles' ) } >
433
+ < TextEditor label = { _ ( 'Name' ) } attr = "decreasing.name" richTextOnly />
434
+ < Numeric label = { _ ( 'Width' ) } attr = "decreasing.line.width" />
435
+ < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "decreasing.line.color" />
436
+ < MultiColorPicker label = { _ ( 'Marker Color' ) } attr = "decreasing.marker.color" />
437
+ < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "decreasing.marker.line.color" />
438
+ < Numeric label = { _ ( 'Line Width' ) } attr = "decreasing.marker.line.width" />
439
+ < MultiColorPicker label = { _ ( 'Fill Color' ) } attr = "decreasing.fillcolor" />
440
+ < LineDashSelector label = { _ ( 'Type' ) } attr = "decreasing.line.dash" />
441
+ < Radio
442
+ label = { _ ( 'Show in Legend' ) }
443
+ attr = "decreasing.showlegend"
444
+ options = { [ { label : _ ( 'Show' ) , value : true } , { label : _ ( 'Hide' ) , value : false } ] }
445
+ />
446
+ </ PlotlySection >
447
+ < PlotlySection name = { _ ( 'Total Marker Styles' ) } >
448
+ < MultiColorPicker label = { _ ( 'Marker Color' ) } attr = "totals.marker.color" />
449
+ < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "totals.marker.line.color" />
450
+ < Numeric label = { _ ( 'Line Width' ) } attr = "totals.marker.line.width" />
451
+ </ PlotlySection >
366
452
< PlotlySection name = { _ ( 'Ticks' ) } >
367
453
< Numeric label = { _ ( 'Width' ) } attr = "tickwidth" />
368
454
</ PlotlySection >
@@ -597,59 +683,6 @@ const StyleTracesPanel = (props, {localize: _}) => (
597
683
< NumericFraction label = { _ ( 'Y' ) } attr = "lightposition.y" />
598
684
< NumericFraction label = { _ ( 'Z' ) } attr = "lightposition.z" />
599
685
</ PlotlySection >
600
- < PlotlySection name = { _ ( 'Increasing Marker Styles' ) } >
601
- < TextEditor label = { _ ( 'Name' ) } attr = "increasing.name" richTextOnly />
602
- < Numeric label = { _ ( 'Width' ) } attr = "increasing.line.width" />
603
- < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "increasing.line.color" />
604
- < MultiColorPicker label = { _ ( 'Marker Color' ) } attr = "increasing.marker.color" />
605
- < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "increasing.marker.line.color" />
606
- < Numeric label = { _ ( 'Line Width' ) } attr = "increasing.marker.line.width" />
607
- < MultiColorPicker label = { _ ( 'Fill Color' ) } attr = "increasing.fillcolor" />
608
- < LineDashSelector label = { _ ( 'Type' ) } attr = "increasing.line.dash" />
609
- < Radio
610
- label = { _ ( 'Show in Legend' ) }
611
- attr = "increasing.showlegend"
612
- options = { [ { label : _ ( 'Show' ) , value : true } , { label : _ ( 'Hide' ) , value : false } ] }
613
- />
614
- </ PlotlySection >
615
- < PlotlySection name = { _ ( 'Decreasing Marker Styles' ) } >
616
- < TextEditor label = { _ ( 'Name' ) } attr = "decreasing.name" richTextOnly />
617
- < Numeric label = { _ ( 'Width' ) } attr = "decreasing.line.width" />
618
- < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "decreasing.line.color" />
619
- < MultiColorPicker label = { _ ( 'Marker Color' ) } attr = "decreasing.marker.color" />
620
- < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "decreasing.marker.line.color" />
621
- < Numeric label = { _ ( 'Line Width' ) } attr = "decreasing.marker.line.width" />
622
- < MultiColorPicker label = { _ ( 'Fill Color' ) } attr = "decreasing.fillcolor" />
623
- < LineDashSelector label = { _ ( 'Type' ) } attr = "decreasing.line.dash" />
624
- < Radio
625
- label = { _ ( 'Show in Legend' ) }
626
- attr = "decreasing.showlegend"
627
- options = { [ { label : _ ( 'Show' ) , value : true } , { label : _ ( 'Hide' ) , value : false } ] }
628
- />
629
- </ PlotlySection >
630
- < PlotlySection name = { _ ( 'Total Marker Styles' ) } >
631
- < MultiColorPicker label = { _ ( 'Marker Color' ) } attr = "totals.marker.color" />
632
- < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "totals.marker.line.color" />
633
- < Numeric label = { _ ( 'Line Width' ) } attr = "totals.marker.line.width" />
634
- </ PlotlySection >
635
- < PlotlySection name = { _ ( 'Connector Styles' ) } >
636
- < Radio
637
- attr = "connector.visible"
638
- options = { [ { label : _ ( 'Show' ) , value : true } , { label : _ ( 'Hide' ) , value : false } ] }
639
- />
640
- < Numeric label = { _ ( 'Line Width' ) } attr = "connector.line.width" />
641
- < MultiColorPicker label = { _ ( 'Line Color' ) } attr = "connector.line.color" />
642
- < LineDashSelector label = { _ ( 'Line Type' ) } attr = "connector.line.dash" />
643
- < Dropdown
644
- label = { _ ( 'Line Shape' ) }
645
- options = { [
646
- { label : _ ( 'Spanning' ) , value : 'spanning' } ,
647
- { label : _ ( 'Between' ) , value : 'between' } ,
648
- ] }
649
- attr = "connector.mode"
650
- clearable = { false }
651
- />
652
- </ PlotlySection >
653
686
< PlotlySection name = { _ ( 'Scaling' ) } >
654
687
< GroupCreator label = { _ ( 'Scale Group' ) } prefix = { _ ( 'Group' ) } attr = "scalegroup" />
655
688
< Radio
@@ -729,7 +762,8 @@ const StyleTracesPanel = (props, {localize: _}) => (
729
762
< MultiColorPicker label = { _ ( 'Line Color' ) } attr = "link.line.color" />
730
763
< Numeric label = { _ ( 'Line Width' ) } attr = "link.line.width" min = { 0 } />
731
764
</ PlotlySection >
732
- < PlotlySection name = { _ ( 'Hover/Tooltip Text' ) } >
765
+ < PlotlySection name = { _ ( 'Hover/Tooltip' ) } >
766
+ < HoveronDropdown attr = "hoveron" label = { _ ( 'Hover on' ) } />
733
767
< HoverTemplateSwitch attr = "hovertemplate" label = { _ ( 'Mode' ) } />
734
768
< HoverInfo attr = "hoverinfo" label = { _ ( 'Show' ) } />
735
769
< HoverTemplateText attr = "hovertemplate" label = { _ ( 'Template' ) } />
@@ -762,9 +796,6 @@ const StyleTracesPanel = (props, {localize: _}) => (
762
796
< Text label = { _ ( 'Value Format' ) } attr = "valueformat" />
763
797
< Text label = { _ ( 'Value Suffix' ) } attr = "valuesuffix" />
764
798
</ PlotlySection >
765
- < PlotlySection name = { _ ( 'Hover Action' ) } >
766
- < HoveronDropdown attr = "hoveron" label = { _ ( 'Hover on' ) } />
767
- </ PlotlySection >
768
799
< TraceTypeSection
769
800
name = { _ ( 'Error Bars X' ) }
770
801
traceTypes = { [ 'scatter' , 'scattergl' , 'scatter3d' , 'bar' ] }
0 commit comments