From 756069c9a2c2fdf30250fc05fdd718e100030714 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Tue, 26 May 2020 14:13:29 -0700 Subject: [PATCH] Remove jquery from gauge chart --- ui/app/components/gauge-chart.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/app/components/gauge-chart.js b/ui/app/components/gauge-chart.js index 2f30a2f3d..3df1f5e4d 100644 --- a/ui/app/components/gauge-chart.js +++ b/ui/app/components/gauge-chart.js @@ -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 }); },