Remove jquery from gauge chart

This commit is contained in:
Michael Lange 2020-05-26 14:13:29 -07:00
parent 849c22845f
commit d84df5dbe6
1 changed files with 1 additions and 3 deletions

View File

@ -74,9 +74,7 @@ export default Component.extend(WindowResizable, {
},
updateDimensions() {
const $svg = this.$('svg');
const width = $svg.width();
const width = this.element.querySelector('svg').clientWidth;
this.setProperties({ width, height: width / 2 });
},