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

YAxis - XAxis Labels Missing

1 Answer 91 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Coty
Top achievements
Rank 1
Coty asked on 10 Apr 2009, 07:27 PM
I must be missing something easy here...

I am trying to add labels to each axis showing the unit of measure of each axis, I can't get them to appear.

Here is my Char:
<telerik:RadChart   
                    ID="RadChart1"   
                    runat="server"   
                    AutoLayout="True" 
                    Width="580px"   
                    Height="440px"   
                    Skin="Colorful">  
                      
                    <Series> 
                        <cc1:ChartSeries  
                            Name="Performance"   
                            Type="Line" 
                            Appearance-LineSeriesAppearance-Width="1" 
                            Appearance-PointMark-Border-Color="Red"   
                            Appearance-Pointmark-Dimensions-Height="1"   
                            Appearance-Border-Color="117, 215, 250"   
                            Appearance-FillStyle-FillType="Solid"   
                            Appearance-FillStyle-MainColor="17, 147, 7"   
                            Appearance-FillStyle-SecondColor="White"   
                            Appearance-TextAppearance-TextProperties-Color="black"    
                            Appearance-TextAppearance-TextProperties-Font="Arial, 6.5pt">  
                        </cc1:ChartSeries> 
                        <cc1:ChartSeries   
                            Name="Power Goal"   
                            Type="Line" 
                            Appearance-LineSeriesAppearance-Width="1" 
                            Appearance-PointMark-Border-Color="Red"   
                            Appearance-Pointmark-Dimensions-Height="1"    
                            Appearance-Border-Color="189, 235, 247"   
                            Appearance-FillStyle-FillType="Solid"   
                            Appearance-FillStyle-MainColor="0, 166, 235"   
                            Appearance-FillStyle-SecondColor="White"   
                            Appearance-TextAppearance-TextProperties-Color="black"    
                            Appearance-TextAppearance-TextProperties-Font="Arial, 6.5pt">  
                        </cc1:ChartSeries> 
                        <cc1:ChartSeries   
                            Name="Operating Point"   
                            Type="Line" 
                            Appearance-LineSeriesAppearance-Width="1" 
                            Appearance-PointMark-Border-Color="Red"   
                            Appearance-PointMark-Figure="Diamond"   
                            Appearance-Pointmark-Dimensions-Height="7"   
                            Appearance-Border-Color="red"   
                            Appearance-Border-Width="0" 
                            Appearance-FillStyle-FillType="Hatch"   
                            Appearance-FillStyle-SecondColor="Red"   
                            Appearance-FillStyle-FillSettings-GradientMode="Vertical"   
                            Appearance-TextAppearance-TextProperties-Color="black"    
                            Appearance-TextAppearance-TextProperties-Font="Arial, 6.5pt">   
                        </cc1:ChartSeries> 
                    </Series> 
                      
                    <PlotArea> 
 
                        <Appearance> 
                            <FillStyle FillType="Solid" MainColor="White">  
                            </FillStyle> 
                            <Border Color="DimGray" /> 
                        </Appearance> 
                          
                        <XAxis AutoScale="true">  
                            <Appearance Color="Red">  
                                <MajorGridLines Color="DimGray" Width="1" /> 
                            </Appearance> 
                            <AxisLabel> 
                                <TextBlock Text="Operating Temperature (C)" Visible="true" Appearance-Dimensions-AutoSize="true">  
                                    <Appearance TextProperties-Font="Verdana, 20pt, style=Bold" TextProperties-Color="Black">  
                                    </Appearance> 
                                </TextBlock> 
                            </AxisLabel> 
                        </XAxis> 
                          
                        <YAxis AutoScale="true">  
                            <Appearance Color="Red">  
                                <MajorGridLines Color="DimGray" Width="1" /> 
                            </Appearance> 
                            <AxisLabel Appearance-Position-Auto="true">  
                                <TextBlock Text="Power (Watts)" Visible="true">  
                                    <Appearance TextProperties-Font="Verdana, 20pt, style=Bold" TextProperties-Color="Black">  
                                    </Appearance> 
                                </TextBlock> 
                            </AxisLabel> 
                        </YAxis> 
                          
                    </PlotArea> 
                      
                    <ChartTitle> 
                        <Appearance Corners="Round, Round, Round, Round, 6"   
                            Dimensions-Margins="4%, 10px, 14px, 0%" Position-AlignedPosition="Top">  
                            <FillStyle GammaCorrection="False" MainColor="224, 224, 224">  
                            </FillStyle> 
                            <Border Color="DimGray" /> 
                        </Appearance> 
                        <TextBlock Text="Heat Pipe Performance Chart">  
                            <Appearance   
                                TextProperties-Font="Verdana, 11.25pt">  
                            </Appearance> 
                        </TextBlock> 
                    </ChartTitle> 
                     
<Legend> 
    <Appearance   
        Position-AlignedPosition="Bottom"   
        FillStyle-FillType="Solid">  
        <ItemTextAppearance TextProperties-Color="DimGray" TextProperties-Font="Arial, 7pt">  
        </ItemTextAppearance> 
        <Border Color="DimGray" /> 
    </Appearance> 
</Legend> 
</telerik:RadChart> 

What am I doing wrong?   ....The label is this section:
<AxisLabel Appearance-Position-Auto="true">  
                                <TextBlock Text="Power (Watts)" Visible="true">  
                                    <Appearance TextProperties-Font="Verdana, 20pt, style=Bold" TextProperties-Color="Black">  
                                    </Appearance> 
                                </TextBlock> 
                            </AxisLabel> 

Thank you.

Coty

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 13 Apr 2009, 01:06 PM
Hi Coty,

All that's left to do here is to actually show those labels:

<XAxis AutoScale="true"
                <Appearance .....> 
................... 
                </Appearance> 
                <AxisLabel Visible="true"
................... 
<YAxis AutoScale="true"
                <Appearance ....> 
................... 
                </Appearance> 
                <AxisLabel Appearance-Position-Auto="true" Visible="true"
................... 

Hope this helps.

All the best,
Ves
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Coty
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or