Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-chart-editor",
"description": "plotly.js chart editor react component UI",
"version": "0.14.0",
"version": "0.15.0",
"author": "Plotly, Inc.",
"bugs": {
"url": "https://github.com/plotly/react-chart-editor/issues"
Expand Down
737 changes: 371 additions & 366 deletions scripts/translationKeys/combined-translation-keys.txt

Large diffs are not rendered by default.

737 changes: 371 additions & 366 deletions scripts/translationKeys/translation-keys.txt

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/components/containers/UpdateMenuAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const UpdateMenuFold = connectUpdateMenuToLayout(PlotlyFold);

class UpdateMenuAccordion extends Component {
render() {
const {layout: {updatemenus = []}, localize: _} = this.context;
const {fullLayout: {updatemenus = []}, localize: _} = this.context;
const {children} = this.props;

const content =
Expand All @@ -21,7 +21,7 @@ class UpdateMenuAccordion extends Component {
const updateMenuType =
localizedType[upd.type] || localizedType.dropdown;
const activeElementLabel = upd.buttons.filter(
b => b.index === upd.active
b => b._index === upd.active
)[0].label;

return (
Expand Down Expand Up @@ -52,7 +52,7 @@ class UpdateMenuAccordion extends Component {
}

UpdateMenuAccordion.contextTypes = {
layout: PropTypes.object,
fullLayout: PropTypes.object,
localize: PropTypes.func,
};

Expand Down
4 changes: 4 additions & 0 deletions src/components/fields/UpdateMenuButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ UpdateMenuButtons.propTypes = {
updatePlot: PropTypes.func,
};

UpdateMenuButtons.contextTypes = {
localize: PropTypes.func,
};

export default connectToContainer(UpdateMenuButtons);
1 change: 1 addition & 0 deletions src/default_panels/GraphCreatePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const GraphCreatePanel = (props, {localize: _}) => {
<Numeric label={_('Sum')} step={10} attr="sum" />
<DataSelector label={_('Text')} attr="text" />
<DataSelector label={_('Color')} attr="marker.color" />
<DataSelector label={'Colors'} attr="marker.colors" />
<Radio
label={_('Transpose')}
attr="transpose"
Expand Down
2 changes: 0 additions & 2 deletions src/default_panels/StyleTracesPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
FillDropdown,
FontSelector,
TextPosition,
DataSelector,
} from '../components';

const StyleTracesPanel = (props, {localize: _}) => (
Expand Down Expand Up @@ -145,7 +144,6 @@ const StyleTracesPanel = (props, {localize: _}) => (
/>
<ColorscalePicker label={_('Colorscale')} attr="marker.colorscale" />
<ColorPicker label={_('Color')} attr="marker.color" />
<DataSelector label={'Colors'} attr="marker.colors" />
<NumericFraction label={_('Opacity')} attr="marker.opacity" />
<Numeric label={_('Size')} attr="marker.size" />
<SymbolSelector label={_('Symbol')} attr="marker.symbol" />
Expand Down