We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1b4d9c commit 328d06cCopy full SHA for 328d06c
addons/easy_charts/examples/bar_chart/Control.gd
@@ -8,8 +8,7 @@ func _ready():
8
# And our y values. It can be an n-size array of arrays.
9
# NOTE: `x.size() == y.size()` or `x.size() == y[n].size()`
10
var y: Array = [
11
- [20, 10, -15, 30, 42],
12
- [10, 1, -5, 20, 32]
+ 20, 10, -15, 30, 42
13
]
14
15
# Add some labels for the x axis, we don't want to use our x values array
@@ -43,8 +42,7 @@ func _process(delta: float):
43
42
# and updaptes the plot
44
var new_val: String = "Day %s" % (chart.x.size() + 1)
45
chart.x.append(new_val)
46
- chart.y[0].append(randi() % 40)
47
- chart.y[1].append(randi() % 50)
+ chart.y.append(randi() % 40)
48
chart.update()
49
50
0 commit comments