summaryrefslogtreecommitdiffstats
path: root/webapp/components/analytics/line_chart.jsx
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-05-30 09:44:32 -0300
committerChristopher Speller <crspeller@gmail.com>2016-05-30 08:44:32 -0400
commite4cb9141a456bbedc4f0e173bc1d912f33846043 (patch)
tree600f8a0046599d15f8f712281f41ae0738d140f0 /webapp/components/analytics/line_chart.jsx
parentf9aabcab5c4bd564db69a690832b710aaa8c9297 (diff)
downloadchat-e4cb9141a456bbedc4f0e173bc1d912f33846043.tar.gz
chat-e4cb9141a456bbedc4f0e173bc1d912f33846043.tar.bz2
chat-e4cb9141a456bbedc4f0e173bc1d912f33846043.zip
PLT-3051 Fix broken site statistics (#3143)
Diffstat (limited to 'webapp/components/analytics/line_chart.jsx')
-rw-r--r--webapp/components/analytics/line_chart.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/analytics/line_chart.jsx b/webapp/components/analytics/line_chart.jsx
index f45e7f5fa..bebeb0223 100644
--- a/webapp/components/analytics/line_chart.jsx
+++ b/webapp/components/analytics/line_chart.jsx
@@ -42,7 +42,7 @@ export default class LineChart extends React.Component {
}
var el = ReactDOM.findDOMNode(this.refs.canvas);
var ctx = el.getContext('2d');
- this.chart = new Chart(ctx).Line(this.props.data, this.props.options || {}); //eslint-disable-line new-cap
+ this.chart = new Chart(ctx, {type: 'line', data: this.props.data, options: this.props.options || {}}); //eslint-disable-line new-cap
}
render() {