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>
Hello,
Thank you for your feedback. I am glad that you have managed to solve your issue. I believe that other visitors of our community can get benefit from this.
Sorry about the late answer.
I have "solved" my issue by sending different dates (difference of seconds) between what I want to show.
My idea was to be able to show the same date in different columns depending on a parameter sent to the group by structure.
One example: I have 3 possible values, buy, sell and deliver. I send a stream of data which will be grouped by date. I want to display the date on the XAxis of each value of buy, sell and deliver, so I can get displayed the same date twice or three times.
I am checking if this is still an issue for you.
If you require any further assistance please do not hesitate to ask.
Hello mekoloko,
I have been looking into your post and I was wondering how exactly you would like to customize the XAxis labels. If possible, would you please attach a descriptive screenshot?
Meanwhile the label of the CategoryXAxis may disappear because their ‘Foreground’ property is set to ‘While’.
Looking forward to hearing from you.