Hi gerpausnet,
Yes it is.
Bear in mind that creating a flexible, data driven chart with legend, axes, autoscaling etc is not a trival task to be achieved in a couple of lines of code.
For a simple barchart, try e.g. load your data as array, dictionary, csv, or simply a string (and use tokencount + tokenat expressions).
Using a string data (eg. "2,4,3,5") do a loop
for (loopindex("x") = 0 to (tokencount(string,separator) - 1))
+ create/spawn a bar sprite
+ position the bar/scale it horizontally offsetting by loopindex("x")
+ scale the bar vertically eg. to int(tokenat(string,separator,offset))
Cheers,
Greg