Change column width Modern UI MetroChart for WPF

0

Good morning, personal.

I'm using MetroChart ( link ) for graphing, everything is working fine, however I'd like to change the style of the columns / bars of the graphs because it is configured to occupy the entire space of the graph, and when inserted only one series ends up with columns / bars very wide (width). I can not upload image because I am in the company environment.

I downloaded the above link code and I'm trying to get into Generic.xaml to try to find out where that change would be, but I have not been successful so far.

Thank you.

    
asked by anonymous 05.01.2017 / 13:51

1 answer

1

I was breaking my head on this for a week looking in forums and here in the SO and now I went to take a look at the site itself and found the answer.

I'm not going to delete the question because it can be useful both for those who want to use the graphics and for those with the same problem.

The answer is here: link

The code to change is this:

<chart:StackedColumnChart.Resources>
   <Style TargetType="chart:ColumnPiece">
       <Setter Property="Margin" Value="10,0" />
   </Style>
</chart:StackedColumnChart.Resources>
    
05.01.2017 / 14:07