Remove jquery from line-chart

This commit is contained in:
Michael Lange 2020-05-26 14:05:45 -07:00
parent 832d8f02f4
commit 71308334d5
1 changed files with 3 additions and 3 deletions

View File

@ -322,9 +322,9 @@ export default Component.extend(WindowResizable, {
},
updateDimensions() {
const $svg = this.$('svg');
const width = $svg.width();
const height = $svg.height();
const $svg = this.element.querySelector('svg');
const width = $svg.clientWidth;
const height = $svg.clientHeight;
this.setProperties({ width, height });
this.renderChart();