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

Scrolling and xAxis

6 Answers 125 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Chris Shi
Top achievements
Rank 1
Chris Shi asked on 04 Aug 2008, 05:01 PM
I have a chart.  If scrolling is turned off, I can display short time with a 90 degree rotation on the x axis.  As soon as I turn on scrolling, the x axis text disappears.

<telerik:RadChart ID="RadChart1" AutoLayout="true"
        runat="server" Width="495px" 
        Skin="Mac">
    <ClientSettings EnableZoom="false" ScrollMode="None" XScale="2" />       
    <ChartTitle>
        <Appearance Dimensions-Margins="4%, 10px, 14px, 6%">
            <FillStyle MainColor="">
            </FillStyle>
        </Appearance>
        <TextBlock>
            <Appearance TextProperties-Color="White"
                TextProperties-Font="Verdana, 14pt">
            </Appearance>
        </TextBlock>
    </ChartTitle>
    <Legend>
        <Appearance Dimensions-Margins="1px, 2%, 12%, 1px">
            <ItemTextAppearance TextProperties-Color="White">
            </ItemTextAppearance>
            <FillStyle GammaCorrection="False" MainColor="37, 255, 255, 255">
            </FillStyle>
            <Border Color="76, 255, 255, 255" />
        </Appearance>
        <TextBlock>
            <Appearance Position-AlignedPosition="Top" TextProperties-Color="LightSkyBlue">
            </Appearance>
        </TextBlock>
    </Legend>
    <PlotArea>
        <Appearance Dimensions-Margins="18%, 24%, 22%, 10%">
        </Appearance>       
        <XAxis LayoutMode="Inside">
            <Appearance ValueFormat="ShortTime" Color="Black">
                <LabelAppearance RotationAngle="90"></LabelAppearance>
            </Appearance>
        </XAxis>
    </PlotArea>
</telerik:RadChart>

Any help will be greatly appreciated. Thanks

6 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 05 Aug 2008, 07:11 AM
Hello Chris,

This issue has been fixed in the latest release - RadControls for ASP.NET AJAX 2008 Q2. Give it a try and let us know if you still observe it.

All the best,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sorin
Top achievements
Rank 1
answered on 19 Aug 2008, 10:44 AM
Hi, I am Sorin.

I have the latest version of telerik Q2 2008, but still when I enter the line
"radChart1.ClientSettings.ScrollMode = ChartClientScrollMode.Both;" or XOnly or YOnly my XAxis labels change from January, February to some numbers ex. 5, 10,15.

This case is with autolayout =true.
autolayout = false it shows the strings but doesnt show the actualy line chart, but only the first value.

I modified the addRange but te result is the same.
I just wnat to obtain a line chart with radChart1.ClientSettings.XScale = 3; with xaxis labels as strings. thats all.

Or give me an ideea how to make my charts more readable because I have relatively a lot of data to display....like lets say 50 values.

Thanks.
0
Ves
Telerik team
answered on 19 Aug 2008, 03:47 PM
Hello Sorin,

Please, find attached a sample page, which works in the specified scenario -- line chart with XScale = 3 and strings along X axis.

Hope this helps.

Best regards,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sorin
Top achievements
Rank 1
answered on 21 Aug 2008, 11:48 AM
So the example you gave me works.
Anyway I made it to apply scroll xscale to bar charts, thanks to an idea of a coworker by adding an empty line series. I run into the problem with the scroll bar over my values but resolved with AddRange -50 :). Now the problem is that when I change from .Bar to .Line (in rest it remains the same code) the labels from the XAxis disipears and turns to numbers like 1 , 2 , 3... instead of january february. I need Line Chart with labels as strings as well.

Is it a bug...or am I missing something.
0
Ves
Telerik team
answered on 25 Aug 2008, 09:32 AM
Hello Sorin,

The page I attached to my previous reply shows a line chart with the correct X axis labels. Indeed, there used to be such kind of bug in RadChart, but it is fixed in the latest version (2008 Q2). Please, download it and give it a try.

Regards,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Karuna
Top achievements
Rank 1
answered on 02 Apr 2012, 04:07 PM
Hi Sorrin,

I am facing the same problem. Want to set the XScale dynamically. but its max is 20.0.. and the x axis labels are getting overlapped.. 
I am using telerik bar chart. when i used the AddRange -50 :), my x axis labels getting changed to integers. but i need to show the name on x axis.Di you get the solution for this. If so, Could you please share the same??

Thanks in advance.
Karuna.
Tags
Chart (Obsolete)
Asked by
Chris Shi
Top achievements
Rank 1
Answers by
Ves
Telerik team
Sorin
Top achievements
Rank 1
Karuna
Top achievements
Rank 1
Share this question
or