I need to do the roughly the same thing as described here:
http://www.telerik.com/community/forums/wpf/chart/group-by-date-and-stack-by-itemtype.aspx
but with some important differences:
I am polling a device for data. I add rows to my data source and bars to my chart in the elapsed event of a timer. So I need to update my chart in real time.
My data source looks like this:
MyClass
{
DateTime PeriodEnd
string Source
int Value
}
Where PeriodEnd is the value for the X axis, Source is how the data is grouped within each PeriodEnd, and value is the quantity to be plotted for each group (Source).
I dont know in advace what the values for Source will be or how many unique values there will be. I just need to take all the rows for a given PeriodEnd, and chart the value for each Source.
Can you kindly point me to an example that will show me how to do this? This is my first project with Telerik - sorry I'm an newbie.
http://www.telerik.com/community/forums/wpf/chart/group-by-date-and-stack-by-itemtype.aspx
but with some important differences:
I am polling a device for data. I add rows to my data source and bars to my chart in the elapsed event of a timer. So I need to update my chart in real time.
My data source looks like this:
MyClass
{
DateTime PeriodEnd
string Source
int Value
}
Where PeriodEnd is the value for the X axis, Source is how the data is grouped within each PeriodEnd, and value is the quantity to be plotted for each group (Source).
I dont know in advace what the values for Source will be or how many unique values there will be. I just need to take all the rows for a given PeriodEnd, and chart the value for each Source.
Can you kindly point me to an example that will show me how to do this? This is my first project with Telerik - sorry I'm an newbie.