Private Sub FillCharts
Dim i As Int
Name = Array As String(N(1), N(2), N(3),N(4),N(5),N(6),N(7),N(8),N(9),N(10),N(11),N(12),N(13),N(14),N(15),N(16),N(17),N(18),N(19),N(20),N(21),N(22),N(23),N(24))
Value = Array As Double(V(1), V(2), V(3),V(4),V(5),V(6),V(7),V(8),V(9),V(10),V(11),V(12),V(13),V(14),V(15),V(16),V(17),V(18),V(19),V(20),V(21),V(22),V(23),V(24))
BarChart.AddBar("Consumption", xui.Color_RGB(139, 132, 255))
For i = 0 To Name.Length - 1
BarChart.AddBarPointData(Name(i), Value(i))
Next
BarChart.DrawChart
End Sub