fix(ui): 修正风扇转轴与速率图并精简进程表
This commit is contained in:
@@ -32,6 +32,7 @@ struct PanelTrendChart: View {
|
||||
var intervals: [TimeInterval] = []
|
||||
var visibleSeriesCount = 1
|
||||
var stackOrder: [Int] = []
|
||||
var projection: PanelCurveProjection = .fullHeight
|
||||
@State private var retainedScale: Double = 1
|
||||
@State private var smallSamples = 0
|
||||
@State private var retainedSecondScale: Double = 1
|
||||
@@ -114,7 +115,7 @@ struct PanelTrendChart: View {
|
||||
scales: [scale, hasSecondaryScale ? secondaryScale : scale, scale, scale],
|
||||
maximumGap: max(5, expectedInterval * 2), hoveredIndex: hoveredDate == nil ? nil : index,
|
||||
visibleSeriesCount: stackOrder.isEmpty ? visibleSeriesCount : stackOrder.count,
|
||||
filledSeriesCount: stackOrder.isEmpty ? visibleSeriesCount : stackOrder.count, stacked: !stackOrder.isEmpty)
|
||||
filledSeriesCount: stackOrder.isEmpty ? visibleSeriesCount : stackOrder.count, stacked: !stackOrder.isEmpty, projection: projection)
|
||||
.contentShape(Rectangle())
|
||||
.onContinuousHover { phase in
|
||||
switch phase {
|
||||
|
||||
Reference in New Issue
Block a user