This is a migrated thread and some comments may be shown as answers.

Chart title visibility

3 Answers 51 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Courouble Damien
Top achievements
Rank 1
Courouble Damien asked on 27 Jul 2011, 02:40 PM
Hy guys, 

This is weird but for some reasons i'm not able to hide title of the chart with xaml
The text is always there, i'm just want to hide or display it
Here's my code :

<telerik:RadChart
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch"
        Background="{Binding MainBackground}"
        SeriesMappings="{Binding SeriesMappings}">
 
        <telerik:RadChart.DefaultView>
            <telerik:ChartDefaultView>   
                <!-- Title -->
                <telerik:ChartDefaultView.ChartTitle>
                    <telerik:ChartTitle Content="{Binding TitleText}" Visibility="Collapsed"  >
                    </telerik:ChartTitle>       
                </telerik:ChartDefaultView.ChartTitle>
            </telerik:ChartDefaultView>     
        </telerik:RadChart.DefaultView>
 
    </telerik:RadChart>

If i'm putting a textblock as content, then set the text property to TitleText, it works : the Title deseapper but keep the space, (my chart is in vertical strech) and i don't want to have a space if the title is collapsed !

Any workarounds ? Am i doing something wrong ? 

Thanks

Damien

3 Answers, 1 is accepted

Sort by
0
Courouble Damien
Top achievements
Rank 1
answered on 28 Jul 2011, 11:10 AM
Anyone for this issue ? This is urgent !

Thanks
0
Missing User
answered on 01 Aug 2011, 03:44 PM
Hello Courouble Damien,

Indeed, there is a problem with the ChartTitle, when setting its Visibility property to Collapsed, while its Content property has value. I have logged this in our Public Issue Tracking System, so you can track its status here. As a temporary workaround, you can clear the ChartTitle.Content value.

Hope this helps. We have updated your Telerik points as well.

Best wishes,
Polina
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Courouble Damien
Top achievements
Rank 1
answered on 02 Aug 2011, 10:46 AM
Thanks for support !
Tags
Chart
Asked by
Courouble Damien
Top achievements
Rank 1
Answers by
Courouble Damien
Top achievements
Rank 1
Missing User
Share this question
or