Remove jquery from gauge chart
This commit is contained in:
parent
849c22845f
commit
d84df5dbe6
|
@ -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 });
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue