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

Positioning of Y-Axis item labels

6 Answers 87 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
baud9600
Top achievements
Rank 1
baud9600 asked on 08 Sep 2011, 04:42 PM
I found related posts on this, but I didn't find anything specific to what I'm looking for. I like to move the Y-Axis item labels to the right of the Y-Axis. Is that possible? Thanks for any pointers on this.

6 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 13 Sep 2011, 02:43 PM
Hello George,

You can use the API provided (from the Properties Window in VS) and modify the position of the Axis->Appearance->LabelAppearance->Position per your requirements.

Kind regards,
Evgenia
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
baud9600
Top achievements
Rank 1
answered on 14 Sep 2011, 03:19 PM
Thanks for your answer, but it seems that whatever I try, the labels show all bunched up on top in one black spot.
<PlotArea>
... 
<YAxis>
       <Appearance  />
               <LabelAppearance    Position-Auto="false" Position-Y="0" Position-X="<any number here>" >
               </LabelAppearance>
       </Appearance>
...
Varying the position-X seems no to make any difference.
Thanks again 
0
Evgenia
Telerik team
answered on 19 Sep 2011, 02:28 PM
Hello George,

Can you be more specific where do you want your YAxis labels to be located? Sending us a sample image will be best. This way we will be able to support you more properly.

Best wishes,
Evgenia
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
0
George
Top achievements
Rank 1
answered on 20 Sep 2011, 06:18 PM
This is what I would like (Y labels on the right side of the axis):
y
|
| 10
|
| 5
|
| 1
|____________________________ X AXIS
Attached is what I see when I do (programmatically or in the aspx)
 <telerik:RadChart  ID="RadChart1" runat="server" Height="264px" DefaultType="Point" Skin="Office2007" 
           ...
            PlotArea-YAxis-Appearance-LabelAppearance-Position-X="2"
            PlotArea-YAxis-Appearance-LabelAppearance-Position-Y="0"
            PlotArea-YAxis-Appearance-LabelAppearance-Position-Auto="false"
            >
            <Appearance >
                <Border Color="134, 134, 134" />
            </Appearance>
            <series>
                <telerik:ChartSeries Name="Series 1" Type="Point"  >
                    <Appearance ShowLabels="true">
                        <FillStyle FillType="Solid" MainColor="69, 115, 167">
                        </FillStyle>
                        <TextAppearance TextProperties-Color="Black">
                        </TextAppearance>
...
                                          <Items>
....
...
Is that supposed to work or is there any other gotcha?.
Thanks
0
Evgenia
Telerik team
answered on 24 Sep 2011, 03:39 PM
Hello George,

Setting custom position X and Y for the YAxis Items Labels moves them starting at position 0,0 on the PlotArea all without keeping their default positions on the YAxis. As a result they are all shown overlapped on the coordinates you provided. Unfortunately there is no way of moving the YAxis Items Labels on the right side.

Regards, Evgenia
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
George
Top achievements
Rank 1
answered on 27 Sep 2011, 05:19 PM
Thanks for your reply. Consider this closed.
Tags
Chart (Obsolete)
Asked by
baud9600
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
baud9600
Top achievements
Rank 1
George
Top achievements
Rank 1
Share this question
or