Hello,
We've got a complex domain model and I want to display different series in the chart view. Nothing extremely fancy, something like this:
And so on, along these lines. We'll want to take an IEnumerable<Data> and GroupBy(x => x.Address) then display each of those groups in a series of their own.
It's actually a little more complex than that, there will be calculators running, and lambdas, but should be transparent to the chart view. SHOULD BE. Oh, and I want to display these ordered in the time domain: When (TimeSpan, time into test) is my X axis. Some function of the Y's are my Y axis.
Thus far I can get the series to at least appear and title themselves in the legend, so I have some visual feedback that that much is working. However, I get no data displaying in the LineSeries at all. It's all flat lines so far, but I do get some series there, so I know it's trying.
How do I instruct the chart to find our data?
Thank you...
We've got a complex domain model and I want to display different series in the chart view. Nothing extremely fancy, something like this:
class
Data {
public
float
Y1 {
get
;
set
;}
public
float
Y2 {
get
;
set
;}
public
float
Y3 {
get
;
set
;}
public
TimeSpan
When {
get
;
set
;}
public
float
Sum {
get
{
return
Y1+Y2+Y3;}}
public
byte
Address {
get
;
set
;}
}
And so on, along these lines. We'll want to take an IEnumerable<Data> and GroupBy(x => x.Address) then display each of those groups in a series of their own.
It's actually a little more complex than that, there will be calculators running, and lambdas, but should be transparent to the chart view. SHOULD BE. Oh, and I want to display these ordered in the time domain: When (TimeSpan, time into test) is my X axis. Some function of the Y's are my Y axis.
Thus far I can get the series to at least appear and title themselves in the legend, so I have some visual feedback that that much is working. However, I get no data displaying in the LineSeries at all. It's all flat lines so far, but I do get some series there, so I know it's trying.
How do I instruct the chart to find our data?
Thank you...