8 lines
170 B
React
8 lines
170 B
React
|
var SVGChartMixin = {
|
||
|
calculateViewBoxWidth: function() {
|
||
|
this.setState({
|
||
|
canvasWidth: this.refs.svg.getDOMNode().offsetWidth
|
||
|
});
|
||
|
}
|
||
|
};
|