Scrolling and xAxis

Thread is closed for posting
7 posts, 0 answers
  1. Chris Shi
    Chris Shi avatar
    7 posts
    Member since:
    May 2008

    Posted 04 Aug 2008 Link to this post

    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
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 05 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sorin
    Sorin avatar
    8 posts
    Member since:
    Apr 2008

    Posted 19 Aug 2008 Link to this post

    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.
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 19 Aug 2008 Link to this post

    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.
  6. Sorin
    Sorin avatar
    8 posts
    Member since:
    Apr 2008

    Posted 21 Aug 2008 Link to this post

    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.
  7. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 25 Aug 2008 Link to this post

    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.
  8. Karuna
    Karuna avatar
    5 posts
    Member since:
    Mar 2012

    Posted 02 Apr 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017