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

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

    Posted 13 Mar 2019 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
    Marin Bratanov avatar
    5004 posts

    Posted 15 Mar 2019 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>
            <YAxis Reversed="true" AxisCrossingValue="999999999"></YAxis>
                        <telerik:ScatterSeriesItem Y="1" X="1" />
                        <telerik:ScatterSeriesItem Y="10" X="10" />
                        <telerik:ScatterSeriesItem Y="20" X="20" />

    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
    8 posts
    Member since:
    Aug 2018

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

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