How to modify the style of columns in ClusteredColumnChart

Dec 29, 2015 at 8:44 AM
I particularly need to add some space between columns in a chart. Is this possible, and how? (please include sample code/xaml)

Thx in advance
Nov 26, 2016 at 6:43 AM
Don't know if you need it now, but for any future reader, adding space between columns is simply a matter of adding a style in the Resources section of your Chart object. Something like this:
      <chart:StackedColumnChart.Resources>
        <Style TargetType="chart:ColumnPiece">
          <Setter Property="Margin" Value="10,0" />
        </Style>
      </chart:StackedColumnChart.Resources>
I used DropShadowEffect to make it look more appealing:
      <chart:StackedColumnChart.Resources>
        <Style TargetType="chart:ColumnPiece">
          <Setter Property="Margin" Value="10,0" />
          <Setter Property="Effect">
            <Setter.Value>
              <DropShadowEffect />
            </Setter.Value>
          </Setter>
        </Style>
      </chart:StackedColumnChart.Resources>