Hi,
I have a chart displaying the number of firm and speculative hours (area series). To do this, I retrieve my data from my controller and apply a grouping on the type (firm or speculative) and display stacked series using:
series.Area(model => model.Loe).Name(
"#= group.value #"
).CategoryField(
"YearMonth"
).Stack(
true
);
All work well but now, I want to add a new series displaying the work force(Data come from the same source) using:
series.Line(model => model.Capacity).Name(
"Capacity"
).CategoryField(
"YearMonth"
).Aggregate(ChartSeriesAggregate.Sum);
but the new series are added for each group. What I want is the new series appears only 1 times not for each group.
How I can do this?
Sylvain