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