Change column width Modern UI Metrochart for WPF

Asked

Viewed 57 times

0

Good morning, everyone.

I’m using the Metrochart (https://modernuicharts.codeplex.com/) for graphics generation, everything is working fine, however I would like to change the style of the columns / bars of the charts because it is configured to occupy all the space of the graph, and when inserted only a series ends up getting columns / very wide bars (width). Obs. I can’t raise image because I am in the company environment.

I downloaded the code from the link above and I’m trying to use Generic.xaml to find out where this change would be, but so far I have not been successful.

Thank you.

  • For once, we’re always lazy for someone. I won’t bother with downvote because this question is much more useful than this useless downvote.

1 answer

1


I’ve been racking my brain about it for a week looking in forums and here in the OR and now I’ve gone to take a wild look at the site itself and found the answer.

I will not delete the question as it can be useful both for those who want to use the graphics and for those with the same problem.

The answer is here: https://modernuicharts.codeplex.com/discussions/649398

The code for change is this:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.