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

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

2 Answers 77 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
sri harsha
Top achievements
Rank 1
sri harsha asked on 13 Mar 2019, 09:28 AM

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 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Mar 2019, 05:13 PM
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.
0
sri harsha
Top achievements
Rank 1
answered on 18 Mar 2019, 08:50 AM
Thanks a lot Marin. It just worked like magic.
Tags
Chart (HTML5)
Asked by
sri harsha
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
sri harsha
Top achievements
Rank 1
Share this question
or