feat: change value type from Double to ColorValue in the BarChart (#441)

This commit is contained in:
Serhiy Mytrovtsiy
2021-08-02 20:11:48 +02:00
parent 83e6e21ec2
commit 918a07150b
8 changed files with 69 additions and 49 deletions

View File

@@ -133,7 +133,7 @@ public class GPU: Module {
widget.setValue(utilization)
widget.setTitle(self.showType ? "\(selectedGPU.type)GPU" : nil)
case let widget as LineChart: widget.setValue(utilization)
case let widget as BarChart: widget.setValue([utilization])
case let widget as BarChart: widget.setValue([[ColorValue(utilization)]])
default: break
}
}