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

How to rotate the Chart Diagram ?

4 Answers 182 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Ampz
Top achievements
Rank 1
Ampz asked on 05 Jan 2021, 06:16 PM
Hello !! There are any way to rotate the X-Y diagram of the chart ? like the attached picture. thx !!

4 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 06 Jan 2021, 06:33 AM

Hello, Ferbabdi,   

The easiest way to rotate RadChartView is to specify the ChartElement.AngleTransform property:

this.radChartView1.ChartElement.AngleTransform = 90;

Here is the code snippet for populating it with data:

            AreaSeries areaSeries = new AreaSeries();
            areaSeries.DataPoints.Add(new CategoricalDataPoint(13, "Jan"));
            areaSeries.DataPoints.Add(new CategoricalDataPoint(20, "Apr"));
            areaSeries.DataPoints.Add(new CategoricalDataPoint(15, "Jul"));
            areaSeries.DataPoints.Add(new CategoricalDataPoint(16, "Oct"));
            this.radChartView1.Series.Add(areaSeries);
            AreaSeries areaSeries2 = new AreaSeries(); 
            areaSeries2.DataPoints.Add(new CategoricalDataPoint(15, "Jan"));
            areaSeries2.DataPoints.Add(new CategoricalDataPoint(25, "Apr"));
            areaSeries2.DataPoints.Add(new CategoricalDataPoint(27, "Jul"));
            areaSeries2.DataPoints.Add(new CategoricalDataPoint(18, "Oct"));
            this.radChartView1.Series.Add(areaSeries2);

 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Ampz
Top achievements
Rank 1
answered on 06 Jan 2021, 12:35 PM
Worked like a charm !! thx !
0
Ampz
Top achievements
Rank 1
answered on 08 Jan 2021, 07:15 PM

Hello Dess, after doing some more indepth devs, i just noticed a weird behavior on the Transformed 90ยบ chart trackball.

There are anyway to solve this problem ??

I am attaching a video, couse i couldnt add a proyect .rar to the attachments due file types limitations.

vid of the weird behavior: https://1drv.ms/u/s!ArRShyhfG26MkC0rfTihE2cGz14t?e=y72lTN

 

thx for the time.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Jan 2021, 06:57 AM
Hello, Fernando,   

If you intend to use the trackball, indeed, managing the ChartElement.AngleTransform property is not the appropriate solution. In this case I would recommend you to change the orientation of the cartesian area: 
            this.radChartView1.GetArea<CartesianArea>().Orientation = Orientation.Horizontal;
            this.radChartView1.ShowTrackBall = true;

I believe that it would fit your scenario. Should you have further questions please let me know.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ChartView
Asked by
Ampz
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Ampz
Top achievements
Rank 1
Share this question
or