Hi Infragistics,
How do i set the <CategoryXAxis> Elements Label Attribute's Style and Value at the Same time ?
for example:
I set the Label Property (or more correctly in Xaml terms Atrribute like below:
<CategoryAxis Label="{ } { Key }" >
but then i also want to set the Label Template Like Below:
<CategoryAxis Label="{StaticResource XaxisLabelTemplate" >
DataTemplate for the Label:
<DataTemplate x:Key="XAxisLabelTemplate"> <Border Canvas.ZIndex="1" Margin="2" CornerRadius="3" Background="{StaticResource XAxisLabelBackground}" BorderThickness="1" RenderTransformOrigin="0,0" VerticalAlignment="Top" HorizontalAlignment="Left"> <Border.RenderTransform> <TransformGroup> <RotateTransform Angle="40" /> <TranslateTransform X="40"></TranslateTransform> </TransformGroup> </Border.RenderTransform> <TextBlock Foreground="Black" FontWeight="Bold" Margin="2" Padding="1" TextAlignment="Center" Text="{Binding Item.Label}"></TextBlock> </Border> </DataTemplate>
So my Question is how do i do Both?
What i mean is Setting the Datatemplate and the Value for the Label attribute of the CategoryXaxis element of a StackedChart?
Hello,
I attached the sample Matt created for you in your private case, so that other community members may benefit from this as well.
Hi Stefan,
The Tooltip does not work.... Dont forget the workaround for the Legend from the Posts above
http://blogs.infragistics.com/forums/p/68280/345771.aspx
adding this xaml code:
<ig:StackedColumnSeries.ToolTip> <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Series.Title}" FontWeight="Bold" /> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Item.June 2001_Date}"/> <!--Add another TextBlocks for the rest of the values--> </StackPanel> </StackPanel></ig:StackedColumnSeries.ToolTip>
will undo the workaround as well as does not display the tool
can you try it on the test project i sent to you before it is still on one of the Posts above which i attached it to.
thanks
thanks for your fast response....
can you check out my support activity CASE NUMBER / CAS-95809-TSG4P2 this gives an accurate description with code as well as images of issues i am facing..
I will try out you solution now thanks.
Since you use a StackedColumn Series you are not able to set different tooltips for every part of the Column but you can put a tooltip with all the values like this:
<ig:StackedColumnSeries.ToolTip> <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Series.Title}" FontWeight="Bold" /> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Item.June 2001_Date}"/> <!--Add another TextBlocks for the rest of the values--> </StackPanel> </StackPanel> </ig:StackedColumnSeries.ToolTip>
Hope this helps you.
following from my previous post i want to Basically extracting the label, value and Legend from the Groupby object to pass it to the tooltip of my stached chart...since it is the groupby object that does the grouping for the stackedArea chart ?