feat: added a new NetworkChartViewV2 chart. Which merges 2 line charts. Moved the disk and network charts in the popup to the new chart.

This commit is contained in:
Serhiy Mytrovtsiy
2024-04-08 16:44:26 +02:00
parent c78319bdec
commit f2d9a491fa
7 changed files with 149 additions and 175 deletions

View File

@@ -22,10 +22,7 @@ public class NetworkChart: WidgetWrapper {
private var commonScaleState: Bool = true
private var reverseOrderState: Bool = false
private var chart: NetworkChartView = NetworkChartView(
frame: NSRect(x: 0, y: 0, width: 30, height: Constants.Widget.height - (2*Constants.Widget.margin.y)),
num: 60, minMax: false, toolTip: false
)
private var chart: NetworkChartView = NetworkChartView(frame: NSRect(x: 0, y: 0, width: 30, height: Constants.Widget.height-(2*Constants.Widget.margin.y)), num: 60)
private var width: CGFloat {
get {
switch self.historyCount {