mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Remove jquery from gauge chart
This commit is contained in:
@@ -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 });
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user