@@ -8,6 +8,11 @@ import {
8
8
TraceTypeSection ,
9
9
AxisAnchorDropdown ,
10
10
AxisSide ,
11
+ Dropdown ,
12
+ Radio ,
13
+ Numeric ,
14
+ ColorPicker ,
15
+ VisibilitySelect ,
11
16
} from '../components' ;
12
17
import { TRACE_TO_AXIS } from '../lib/constants' ;
13
18
@@ -37,6 +42,165 @@ const GraphSubplotsPanel = (props, {localize: _}) => (
37
42
/>
38
43
< AxisSide label = { _ ( 'Side' ) } attr = "yaxis.side" />
39
44
</ TraceTypeSection >
45
+
46
+ < PlotlySection name = { _ ( 'Aspect Ratio' ) } >
47
+ < VisibilitySelect
48
+ attr = "aspectmode"
49
+ options = { [
50
+ { label : _ ( 'Auto' ) , value : 'mode' } ,
51
+ { label : _ ( 'Cube' ) , value : 'cube' } ,
52
+ { label : _ ( 'Data' ) , value : 'data' } ,
53
+ { label : _ ( 'Manual' ) , value : 'manual' } ,
54
+ ] }
55
+ dropdown = { true }
56
+ clearable = { false }
57
+ showOn = "manual"
58
+ dafault = "mode"
59
+ >
60
+ < Numeric label = { _ ( 'X' ) } attr = "aspectratio.x" step = { 0.1 } />
61
+ < Numeric label = { _ ( 'Y' ) } attr = "aspectratio.y" step = { 0.1 } />
62
+ < Numeric label = { _ ( 'Z' ) } attr = "aspectratio.z" step = { 0.1 } />
63
+ </ VisibilitySelect >
64
+ </ PlotlySection >
65
+
66
+ < PlotlySection name = { _ ( 'Canvas' ) } >
67
+ < ColorPicker label = { _ ( 'Plot Background' ) } attr = "bgcolor" />
68
+ </ PlotlySection >
69
+
70
+ < PlotlySection name = { _ ( 'Map Options' ) } >
71
+ < Dropdown
72
+ label = { _ ( 'Map Region' ) }
73
+ attr = "scope"
74
+ options = { [
75
+ { label : _ ( 'World' ) , value : 'world' } ,
76
+ { label : _ ( 'USA' ) , value : 'usa' } ,
77
+ { label : _ ( 'Europe' ) , value : 'europe' } ,
78
+ { label : _ ( 'Asia' ) , value : 'asia' } ,
79
+ { label : _ ( 'Africa' ) , value : 'africa' } ,
80
+ { label : _ ( 'North America' ) , value : 'north america' } ,
81
+ { label : _ ( 'South America' ) , value : 'south america' } ,
82
+ ] }
83
+ clearable = { false }
84
+ />
85
+ < Dropdown
86
+ label = { _ ( 'Projection' ) }
87
+ attr = "projection.type"
88
+ clearable = { false }
89
+ options = { [
90
+ { label : _ ( 'Equirectangular' ) , value : 'equirectangular' } ,
91
+ { label : _ ( 'Mercator' ) , value : 'mercator' } ,
92
+ { label : _ ( 'Orthographic' ) , value : 'orthographic' } ,
93
+ { label : _ ( 'Natural Earth' ) , value : 'natural earth' } ,
94
+ { label : _ ( 'Albers USA' ) , value : 'albers usa' } ,
95
+ { label : _ ( 'Winkel Tripel' ) , value : 'winkel tripel' } ,
96
+ { label : _ ( 'Robinson' ) , value : 'robinson' } ,
97
+ { label : _ ( 'Miller' ) , value : 'miller' } ,
98
+ { label : _ ( 'Kavrayskiy 7' ) , value : 'kavrayskiy7' } ,
99
+ { label : _ ( 'Eckert 4' ) , value : 'eckert4' } ,
100
+ { label : _ ( 'Azimuthal Equal Area' ) , value : 'azimuthal equal area' } ,
101
+ {
102
+ label : _ ( 'Azimuthal Equidistant' ) ,
103
+ value : 'azimuthal equidistant' ,
104
+ } ,
105
+ { label : _ ( 'Conic Equal Area' ) , value : 'conic equal area' } ,
106
+ { label : _ ( 'Conic Conformal' ) , value : 'conic conformal' } ,
107
+ { label : _ ( 'Conic Equidistant' ) , value : 'conic equidistant' } ,
108
+ { label : _ ( 'Gnomonic' ) , value : 'gnomonic' } ,
109
+ { label : _ ( 'Stereographic' ) , value : 'stereographic' } ,
110
+ { label : _ ( 'Mollweide' ) , value : 'mollweide' } ,
111
+ { label : _ ( 'Hammer' ) , value : 'hammer' } ,
112
+ { label : _ ( 'Transverse Mercator' ) , value : 'transverse mercator' } ,
113
+ { label : _ ( 'Aitoff' ) , value : 'aitoff' } ,
114
+ { label : _ ( 'Sinusoidal' ) , value : 'sinusoidal' } ,
115
+ ] }
116
+ />
117
+ </ PlotlySection >
118
+
119
+ < PlotlySection name = { _ ( 'Country Borders' ) } attr = "showcountries" >
120
+ < Radio
121
+ attr = "showcountries"
122
+ options = { [
123
+ { label : _ ( 'Show' ) , value : true } ,
124
+ { label : _ ( 'Hide' ) , value : false } ,
125
+ ] }
126
+ />
127
+ < Numeric label = { _ ( 'Border Width' ) } attr = "countrywidth" units = "px" />
128
+ < ColorPicker label = { _ ( 'Border Color' ) } attr = "countrycolor" />
129
+ </ PlotlySection >
130
+ < PlotlySection name = { _ ( 'Sub-Country Unit Borders' ) } attr = "showsubunits" >
131
+ < Radio
132
+ attr = "showsubunits"
133
+ options = { [
134
+ { label : _ ( 'Show' ) , value : true } ,
135
+ { label : _ ( 'Hide' ) , value : false } ,
136
+ ] }
137
+ />
138
+ < Numeric label = { _ ( 'Border Width' ) } attr = "subunitwidth" units = "px" />
139
+ < ColorPicker label = { _ ( 'Border Color' ) } attr = "subunitcolor" />
140
+ </ PlotlySection >
141
+ < PlotlySection name = { _ ( 'Coastlines' ) } attr = "showcoastlines" >
142
+ < Radio
143
+ attr = "showcoastlines"
144
+ options = { [
145
+ { label : _ ( 'Show' ) , value : true } ,
146
+ { label : _ ( 'Hide' ) , value : false } ,
147
+ ] }
148
+ />
149
+ < Numeric label = { _ ( 'Width' ) } attr = "coastlinewidth" units = "px" />
150
+ < ColorPicker label = { _ ( 'Color' ) } attr = "coastlinecolor" />
151
+ </ PlotlySection >
152
+ < PlotlySection name = { _ ( 'Oceans' ) } attr = "showocean" >
153
+ < Radio
154
+ attr = "showocean"
155
+ options = { [
156
+ { label : _ ( 'Show' ) , value : true } ,
157
+ { label : _ ( 'Hide' ) , value : false } ,
158
+ ] }
159
+ />
160
+ < ColorPicker label = { _ ( 'Color' ) } attr = "oceancolor" />
161
+ </ PlotlySection >
162
+ < PlotlySection name = { _ ( 'Land' ) } attr = "showland" >
163
+ < Radio
164
+ attr = "showland"
165
+ options = { [
166
+ { label : _ ( 'Show' ) , value : true } ,
167
+ { label : _ ( 'Hide' ) , value : false } ,
168
+ ] }
169
+ />
170
+ < ColorPicker label = { _ ( 'Color' ) } attr = "landcolor" />
171
+ </ PlotlySection >
172
+ < PlotlySection name = { _ ( 'Lakes' ) } attr = "showlakes" >
173
+ < Radio
174
+ attr = "showlakes"
175
+ options = { [
176
+ { label : _ ( 'Show' ) , value : true } ,
177
+ { label : _ ( 'Hide' ) , value : false } ,
178
+ ] }
179
+ />
180
+ < ColorPicker label = { _ ( 'Color' ) } attr = "lakecolor" />
181
+ </ PlotlySection >
182
+ < PlotlySection name = { _ ( 'Rivers' ) } attr = "showrivers" >
183
+ < Radio
184
+ attr = "showrivers"
185
+ options = { [
186
+ { label : _ ( 'Show' ) , value : true } ,
187
+ { label : _ ( 'Hide' ) , value : false } ,
188
+ ] }
189
+ />
190
+ < Numeric label = { _ ( 'Width' ) } attr = "riverwidth" units = "px" />
191
+ < ColorPicker label = { _ ( 'Color' ) } attr = "rivercolor" />
192
+ </ PlotlySection >
193
+ < PlotlySection name = { _ ( 'Map Frame' ) } attr = "showframe" >
194
+ < Radio
195
+ attr = "showframe"
196
+ options = { [
197
+ { label : _ ( 'Show' ) , value : true } ,
198
+ { label : _ ( 'Hide' ) , value : false } ,
199
+ ] }
200
+ />
201
+ < Numeric label = { _ ( 'Width' ) } attr = "framewidth" units = "px" />
202
+ < ColorPicker label = { _ ( 'Color' ) } attr = "framecolor" />
203
+ </ PlotlySection >
40
204
</ SubplotAccordion >
41
205
) ;
42
206
0 commit comments