Remove jquery from gauge chart

This commit is contained in:
Michael Lange
2020-05-26 14:13:29 -07:00
parent 718114cb98
commit 756069c9a2

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 });
},