feat: added a timestamp to the line chart

feat: added background for tooltip in the line chart
This commit is contained in:
Serhiy Mytrovtsiy
2024-02-29 18:30:45 +01:00
parent 2b6dc85df5
commit 052845d480
3 changed files with 55 additions and 20 deletions

View File

@@ -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