Hello –
I’ve used the jqxgauge to build a gauge that includes the value show in text (please see here), but now I’m having performance issues anytime the label updates. As you can see here, the updating of the label is taking 80ms+. When I comment out the updating of the label, the performance hit for the update is negligible (1.3ms). Can you please take a look at the code I’ve written below and provide guidance/insight into a more efficient way to get the label to update?
this.$scope.$on("jqxGaugeCreated", (event) => {
this.$scope.$watch(() => {
return this.loadCellDataService.getLoadCellWeight();
}, () => {
this.balerData.currentWeight = this.loadCellDataService.getLoadCellWeight();
this.gaugeSettings.caption.value = "" + this.balerData.currentWeight + " lbs.";
this.gaugeSettings.apply("caption", this.gaugeSettings.caption);
});
});