File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const UpdateMenuFold = connectUpdateMenuToLayout(PlotlyFold);
88
99class UpdateMenuAccordion extends Component {
1010 render ( ) {
11- const { layout : { updatemenus = [ ] } , localize : _ } = this . context ;
11+ const { fullLayout : { updatemenus = [ ] } , localize : _ } = this . context ;
1212 const { children} = this . props ;
1313
1414 const content =
@@ -21,7 +21,7 @@ class UpdateMenuAccordion extends Component {
2121 const updateMenuType =
2222 localizedType [ upd . type ] || localizedType . dropdown ;
2323 const activeElementLabel = upd . buttons . filter (
24- b => b . index === upd . active
24+ b => b . _index === upd . active
2525 ) [ 0 ] . label ;
2626
2727 return (
@@ -52,7 +52,7 @@ class UpdateMenuAccordion extends Component {
5252}
5353
5454UpdateMenuAccordion . contextTypes = {
55- layout : PropTypes . object ,
55+ fullLayout : PropTypes . object ,
5656 localize : PropTypes . func ,
5757} ;
5858
Original file line number Diff line number Diff line change @@ -48,4 +48,8 @@ UpdateMenuButtons.propTypes = {
4848 updatePlot : PropTypes . func ,
4949} ;
5050
51+ UpdateMenuButtons . contextTypes = {
52+ localize : PropTypes . func ,
53+ } ;
54+
5155export default connectToContainer ( UpdateMenuButtons ) ;
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ const GraphCreatePanel = (props, {localize: _}) => {
184184 < Numeric label = { _ ( 'Sum' ) } step = { 10 } attr = "sum" />
185185 < DataSelector label = { _ ( 'Text' ) } attr = "text" />
186186 < DataSelector label = { _ ( 'Color' ) } attr = "marker.color" />
187+ < DataSelector label = { 'Colors' } attr = "marker.colors" />
187188 < Radio
188189 label = { _ ( 'Transpose' ) }
189190 attr = "transpose"
Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ const StyleTracesPanel = (props, {localize: _}) => (
145145 />
146146 < ColorscalePicker label = { _ ( 'Colorscale' ) } attr = "marker.colorscale" />
147147 < ColorPicker label = { _ ( 'Color' ) } attr = "marker.color" />
148- < DataSelector label = { 'Colors' } attr = "marker.colors" />
149148 < NumericFraction label = { _ ( 'Opacity' ) } attr = "marker.opacity" />
150149 < Numeric label = { _ ( 'Size' ) } attr = "marker.size" />
151150 < SymbolSelector label = { _ ( 'Symbol' ) } attr = "marker.symbol" />
You can’t perform that action at this time.
0 commit comments