Code: Select all
data = {
foo={5,5,5,7,5,6,6,6,8},
bar={1,2,3,1,2,3,1,2,3},
}
graph = someframe.add{type="graph"}
graph.update_data(data)
... [one or many ticks later] ...
graph.update_data(new_data)
Some way to provide horizontal axis labels would be needed, but I suspect the internal representation of the graph would lend itself to some specific lua representation that I don't want to guess at.