Thanks Tim,
I have a question:
In your example, data is present in controller itself, how can I store the data effectively in database and then use that data for plotting graphs?
Can you please provide an example of how this can be stored/retrieved from db? I searched the net and found people suggesting pickle/json for storing/retrieving from db, but I'm not having any experience with both. Can you please help.
def plugin_return_data():
data = [['Year','Sales','Expenses'],["2004",1000,400],["2005",1100,440],["2006",1200,600],
["2007",1500,800],["2008",1600,850],["2009",1800,900]]
return dict(data=data)
-Sarbjit