var SVGChartMixin = { calculateViewBoxWidth: function() { this.setState({ canvasWidth: this.refs.svg.getDOMNode().offsetWidth }); } };