Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1310
How to custom an XAxis label when I have the data in a GroupBy mode in a stackedColumnSeries?
posted

Hi!

I want to set a custom xAxis label in a StackedColumnSeries. I don't know how to do it, I have a groupBy structure where I groupBy dates. I want to display a string property of the item(s) grouped in the same date.

How can I do that? At this moment I have this:

My groupBY

  <ig:GroupBy x:Key="grouped"
                    ItemsSource="{Binding GraphData,Mode=TwoWay}"
                    GroupMemberPath="ValueDate"
                    KeyMemberPath="AssetId"
                    ValueMemberPath="Balance" />

My XAxis

<ig:CategoryXAxis x:Name="xAxis"
                                  Interval="1"
                                  ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=Views:FutureScenariosView}
                    ,Path=Data
                    ,Mode=TwoWay}"
                    Label="{}{Key}">
                     <ig:CategoryXAxis.LabelSettings>                         <ig:AxisLabelSettings Foreground="White"                                               Angle="90"                                               Extent="100" />                     </ig:CategoryXAxis.LabelSettings>                 </ig:CategoryXAxis>