Points of Y-Axis in descending order without moving X-Axis

3 posts, 0 answers
  1. sri harsha
    sri harsha avatar
    5 posts
    Member since:
    Aug 2018

    Posted 13 Mar Link to this post

    Hi Team,

    I am using server based dynamic radhtmlchart control in my asp.net page. It is getting dynamically rendered and added to the the page. I have a requirement where y-Axis points should be in descending order (Ref: pic 1). I have tried using reversed = true property but it is moving the x-axis to the top of the chart. 

    Is there any way i can implement the requirement as shown in the reference picture.

    Any sort of help is appreciated.

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4713 posts

    Posted 15 Mar Link to this post

    Hi Sri,

    You can set the y-axis to cross the x-axis in a very large number, so that the x-axis is at the and of the y-axis. For example:

    <telerik:RadHtmlChart runat="server" ID="rhc1" Width="400" Height="300">
        <ChartTitle Text="or set another sufficiently large number\nfor the AxisCrossingValue property\nthat is a bit higher than the data range"></ChartTitle>
        <PlotArea>
            <YAxis Reversed="true" AxisCrossingValue="999999999"></YAxis>
            <Series>
                <telerik:ScatterSeries>
                    <SeriesItems>
                        <telerik:ScatterSeriesItem Y="1" X="1" />
                        <telerik:ScatterSeriesItem Y="10" X="10" />
                        <telerik:ScatterSeriesItem Y="20" X="20" />
                    </SeriesItems>
                </telerik:ScatterSeries>
            </Series>
        </PlotArea>
    </telerik:RadHtmlChart>


    Regards,
    Marin Bratanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. sri harsha
    sri harsha avatar
    5 posts
    Member since:
    Aug 2018

    Posted 18 Mar in reply to Marin Bratanov Link to this post

    Thanks a lot Marin. It just worked like magic.
Back to Top