def y_right
g.set_data([46,28,33,48,54,49,34,40,36,43,56,55,57,49,38,35,36,62,44,59,40,55,27,37,47])
end
Question:
How can i fil in the g.set_data from a database-table/column?
Your question is how to obtain an array of numbers from a database? I
recommend reading an Active Record tutorial, or the Active Record
section of a good Rails book.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.