How to set Axis title

Thread is closed for posting
3 posts, 0 answers
  1. Alessandro
    Alessandro avatar
    6 posts
    Member since:
    Oct 2008

    Posted 09 Oct 2008 Link to this post

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

     

    1 <AxisLabel> 
    2    <Appearance Dimensions-Paddings="1px, 1px, 10%, 1px"   
    3               Position-AlignedPosition="Right">  
    4    </Appearance> 
    5    <TextBlock Text="MyTytle" Visible="true" > 
    6        <Appearance TextProperties-Color="254, 178, 112">  
    7        </Appearance> 
    8    </TextBlock> 
    9 </AxisLabel> 

    but it doesn't works!

  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 09 Oct 2008 Link to this post

    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.
  3. Alessandro
    Alessandro avatar
    6 posts
    Member since:
    Oct 2008

    Posted 13 Oct 2008 Link to this post

    Tanks, it works
Back to Top