1
0
Fork 0
empact/app/jsx/charts/svg_chart_mixin.jsx

8 lines
170 B
JavaScript

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