Thread is closed for posting
2 posts, 0 answers
  1. Agyeman
    Agyeman avatar
    12 posts
    Member since:
    May 2008

    Posted 19 May 2008 Link to this post

    Please could someone tell me or direct me to an example of how can I customize my x-axis values. i want to place custom string  names as xAxis values. thank yopu.
  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 20 May 2008 Link to this post

    Hi Agyeman,

    You need to set XAxis.AutoScale property to false and then you can customize the axis item labels like this:

    <telerik:RadChart ID="RadChart1" runat="server" AutoLayout="True"
            <telerik:ChartSeries Name="Series 1" Type="Line"
                    <telerik:ChartSeriesItem Name="Item 1" YValue="5"
                    <telerik:ChartSeriesItem Name="Item 2" YValue="1"
                    <telerik:ChartSeriesItem Name="Item 3" YValue="2"
                    <telerik:ChartSeriesItem Name="Item 4" YValue="9"
                    <telerik:ChartSeriesItem Name="Item 5" YValue="5"
            <XAxis AutoScale="false" MinValue="1" MaxValue="5" Step="1"
                    <telerik:ChartAxisItem Value="1"
                        <TextBlock Text="Custom1"></TextBlock> 
                    <telerik:ChartAxisItem Value="2"
                        <TextBlock Text="Custom2"></TextBlock> 
                    <telerik:ChartAxisItem Value="3"
                        <TextBlock Text="Custom3"></TextBlock> 
                    <telerik:ChartAxisItem Value="4"
                        <TextBlock Text="Custom4"></TextBlock> 
                    <telerik:ChartAxisItem Value="5"
                        <TextBlock Text="Custom5"></TextBlock> 

    Hope this helps.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top