Commit d0b9f2df authored by Martin Wortschack's avatar Martin Wortschack

Replace underscore _.values with Object.values

parent d9613bc7
import $ from 'jquery'; import $ from 'jquery';
import Chart from 'chart.js'; import Chart from 'chart.js';
import _ from 'underscore';
import { barChartOptions, pieChartOptions } from '~/lib/utils/chart_utils'; import { barChartOptions, pieChartOptions } from '~/lib/utils/chart_utils';
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
...@@ -40,7 +38,7 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -40,7 +38,7 @@ document.addEventListener('DOMContentLoaded', () => {
backgroundColor: 'rgba(220,220,220,0.5)', backgroundColor: 'rgba(220,220,220,0.5)',
borderColor: 'rgba(220,220,220,1)', borderColor: 'rgba(220,220,220,1)',
borderWidth: 1, borderWidth: 1,
data: _.values(data), data: Object.values(data),
}, },
], ],
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment