Hi,
I'm having kind of a hard time getting started with the charting library included in the WPF Toolkit. I've tried to find the answer in these forums, in the WPF Toolkit discussions and in this well written article http://expression.microsoft.com/en-us/dd433476.aspx
What I want to show in the graph
I've got an object holding the data I want to display
publicclass SIPMessageStatisticDto {publicint TotalMessageCount { get; set; }publicint AllErrorMessageCount { get; set; }publicint ManufacturerErrorMessageCount { get; set; }publicint TypeErrorMessageCount { get; set; }publicint ModelErrorMessageCount { get; set; }publicint DeviceErrorMessageCount { get; set; } }
For each accessor in this object I'd like to draw a bar (each bar with a different colour) that is structured as follows:
Name of the entry (provided by another object), bar showing the percentage of error messages (100 * xxxErrorMessageCount / TotalMessageCount), percentage value, xxxErrorMessageCount
Question
I'm currently stuck at how to start this in order to have a different colour for each bar. Do I have to define a new BarSeries for each entry? (If I bind an object implementing System.Collections.ObjectModel.Collection<T> multiple entries
are shown, but all the bars got the same colour).
My problem seems to be related to some fundamental understandings of how this library works. I hope someone can point me into the right directions.
Thanks, Philippe