mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: added a timestamp to the line chart
feat: added background for tooltip in the line chart
This commit is contained in:
@@ -110,9 +110,9 @@ public class LineChart: WidgetWrapper {
|
||||
}
|
||||
|
||||
if preview {
|
||||
var list: [Double] = []
|
||||
var list: [DoubleValue] = []
|
||||
for _ in 0..<16 {
|
||||
list.append(Double.random(in: 0..<1))
|
||||
list.append(DoubleValue(Double.random(in: 0..<1)))
|
||||
}
|
||||
self.chart.points = list
|
||||
self._value = 0.38
|
||||
|
||||
Reference in New Issue
Block a user