Charting: Category-Axis Grouping

Feb 25, 2010 at 12:52 PM


I would like to group my data on for example a column chart.

This is a pretty good example of what I want to do:


I would like to know how I could make something like this with the chart component.

I define the color myself in the ViewModel so the coloring was easy with Databinding.

The two Issues that I'm facing is the shared label on the axis and the different positioning.

My current idea for a solution is, for the label is to make a style that hides (in this example) two of the three grouped items on the category axis.

For the additional gap between groups I could just insert blank objects with no or zero value.

But both solutions are kind of dirty - so is there a proper way to do this?