WPF Charting ColumnSeries with CategoryAxis Margin Between Columns

I have a column chart that is grouped with CategoryAxis.

My problem is that when the columns are grouped together, there is no spacing / field between the columns.

I tried applying the label style in DataPoint, but the only thing that does is move all the columns, but not apply a marker for each column.

See image:

alt text Style Code:

<Charting:ColumnSeries.DataPointStyle> <Style TargetType="Charting:ColumnDataPoint"> <Setter Property="Margin" Value="10, 0, 0, 0"/> <Setter Property="MaxWidth" Value="5" /> <Setter Property="MaxWidth" Value="5" /> </Style> </Charting:ColumnSeries.DataPointStyle> 
+4
source share
1 answer

I was looking for this problem incorrectly, in fact the problem was that all the bars are the same data series. When I break each bar into its own data series, I get the desired result.

+1
source

All Articles