FlexChart data input

Hello,

In UOC OMI we would like to use FlexChart app to display the trend of our data.

When I check the configuration in demos I see table or json format with static values. I could'nt see any example how can I put my attribute value as data set?

Let's say I would like to put the trend of an attribute for last 30 days which the data is stored in historian. How can I define this as a dataset for FlexChart?

Any example configuration?

thanks,

Ramazan