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

How to set Axis title

2 Answers 54 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Alessandro
Top achievements
Rank 1
Alessandro asked on 09 Oct 2008, 01:56 PM

I set Axis' title of my chart in this way,

 

<AxisLabel> 
   <Appearance Dimensions-Paddings="1px, 1px, 10%, 1px"   
              Position-AlignedPosition="Right">  
   </Appearance> 
   <TextBlock Text="MyTytle" Visible="true" > 
       <Appearance TextProperties-Color="254, 178, 112">  
       </Appearance> 
   </TextBlock> 
</AxisLabel> 

but it doesn't works!

2 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 09 Oct 2008, 03:07 PM
Hello Alessandro,

Here is a sample code snippet that demonstrates the desired functionality:

<telerik:RadChart ID="RadChart1" runat="server" AutoLayout="true"
    <Series> 
        <telerik:ChartSeries> 
            <Items> 
                <telerik:ChartSeriesItem YValue="10"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="20"
                </telerik:ChartSeriesItem> 
            </Items> 
        </telerik:ChartSeries> 
    </Series> 
    <PlotArea> 
        <XAxis> 
            <AxisLabel TextBlock-Text="X Title" Visible="true"
            </AxisLabel> 
        </XAxis> 
        <YAxis> 
            <AxisLabel TextBlock-Text="Y Title" Visible="true"
            </AxisLabel> 
        </YAxis> 
    </PlotArea> 
</telerik:RadChart> 


Note that you need to set both Axis.AxisLabel.TextBlock.Text and Axis.AxisLabel.Visible properties in order to display the axis title.

Hope this helps.


Regards,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alessandro
Top achievements
Rank 1
answered on 13 Oct 2008, 07:12 AM
Tanks, it works
Tags
Chart (Obsolete)
Asked by
Alessandro
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Alessandro
Top achievements
Rank 1
Share this question
or