RadChart Y Axis as Secondary Axis, Y axis label issue

Thread is closed for posting
2 posts, 0 answers
  1. Mahesh Bhor
    Mahesh Bhor avatar
    2 posts
    Member since:
    Nov 2009

    Posted 04 Nov 2009 Link to this post

    When I set Y axis of Radchart as Secondary Axis

    telerikSeries.YAxisType = Telerik.Charting.ChartYAxisType.Secondary;

    it hide Y Axis label, why this is happening ? Can anyone guide me to display Y Axis Label

    Code: Y Axis as secondary axis
            <telerik:RadChart ID="RadChart1" runat="server" Width="480px" Height="290px">
                <Series>
                    <telerik:ChartSeries Name="Series 1" YAxisType="Secondary" >
                        <Items>
                            <telerik:ChartSeriesItem YValue="1" Name="Item 1">
                            </telerik:ChartSeriesItem>
                            <telerik:ChartSeriesItem YValue="2" Name="Item 2">
                            </telerik:ChartSeriesItem>
                            <telerik:ChartSeriesItem YValue="4" Name="Item 3">
                            </telerik:ChartSeriesItem>
                            <telerik:ChartSeriesItem YValue="3" Name="Item 4">
                            </telerik:ChartSeriesItem>
                            <telerik:ChartSeriesItem YValue="5" Name="Item 5">
                            </telerik:ChartSeriesItem>
                        </Items>                    
                    </telerik:ChartSeries>
                    
                </Series>
            </telerik:RadChart>




    Please go through the screenshot of both scenarios ..

    1. defaultaxis.jpg - normal behavior of Chart
    2. y axis secondaryaxis.jpg - Y axis set as secondary axis

  2. Mahesh Bhor
    Mahesh Bhor avatar
    2 posts
    Member since:
    Nov 2009

    Posted 04 Nov 2009 Link to this post

    I got the way.

    We need to set Secondary Y Axis label (YAxis 2) to get result.

    radChart.PlotArea.YAxis2.AxisLabel.TextBlock.Text= "Secondary Axis label"

    Thanks
Back to Top