Skip to content

Commit ecd385e

Browse files
committed
Update due to critical issue
1 parent af966cd commit ecd385e

File tree

11 files changed

+107
-86
lines changed

11 files changed

+107
-86
lines changed

dist/anychart-react.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ var AnyChart = function (_React$Component) {
5959
* @type {Array.<string>}
6060
*/
6161
_this.multipleEntities = ['xAxis', 'yAxis', 'lineMarker', 'rangeMarker', 'textMarker', 'grid', 'minorGrid'];
62+
63+
/**
64+
* Container for chart/stage.
65+
* @type {string}
66+
*/
67+
_this.containerId = props.id || 'ac-chart-container';
6268
return _this;
6369
}
6470

@@ -155,7 +161,7 @@ var AnyChart = function (_React$Component) {
155161
delete props.type;
156162
delete props.data;
157163
}
158-
if (this.instance) this.instance.container(props.id || 'ac-chart-container');
164+
if (this.instance) this.instance.container(this.containerId);
159165
delete props.id;
160166
}
161167

@@ -225,7 +231,7 @@ var AnyChart = function (_React$Component) {
225231
}, {
226232
key: 'render',
227233
value: function render() {
228-
return _react2.default.createElement('div', { id: this.props.id || 'ac-chart-container' });
234+
return _react2.default.createElement('div', { id: this.containerId });
229235
}
230236

231237
/**
@@ -237,6 +243,11 @@ var AnyChart = function (_React$Component) {
237243
value: function componentDidMount() {
238244
this.createAndDraw({});
239245
}
246+
}, {
247+
key: 'componentWillUpdate',
248+
value: function componentWillUpdate(nextProps, nextState) {
249+
this.containerId = nextProps.id || this.containerId;
250+
}
240251

241252
/**
242253
* Component has re-rendered.

dist/anychart-react.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/chart_with_json/chart_with_json.min.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/charts_with_controls/charts_with_controls.min.js

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/choropleth_map/choropleth_map.min.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/data_streaming/data_streaming.min.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/multiseries_column_chart/multiseries_column_chart.min.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/simple_dashboard/simple_dashboard.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/stock/stock.min.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/tabs/tabs.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)