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

RadChart Y Axis as Secondary Axis, Y axis label issue

1 Answer 227 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mahesh Bhor
Top achievements
Rank 1
Mahesh Bhor asked on 04 Nov 2009, 07:26 AM
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

1 Answer, 1 is accepted

Sort by
0
Mahesh Bhor
Top achievements
Rank 1
answered on 04 Nov 2009, 08:17 AM
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
Tags
Chart (Obsolete)
Asked by
Mahesh Bhor
Top achievements
Rank 1
Answers by
Mahesh Bhor
Top achievements
Rank 1
Share this question
or