本文介绍了馅饼或甜甜圈图表方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我使用ASP.NET图表控件创建了一个圆环图。馅饼/部分按顺时针方向排序,但我需要它们以逆时针方向排序。我知道我可以按相反的顺序添加值并实现这一点,但必须有
才能解决这个问题。

 I have created a donut chart using ASP.NET chart control. The pies/sections are ordered in clockwise direction but I need them to be ordered in anti clockwise direction. I know that I can add the values in reverse order and achieve this but there must be a solution to this.

此外,它开始将甜甜圈从90度分割为是的,但我希望它从甜甜圈的顶部开始,即0度。

Also, it starts dividing the donut from 90 degrees to the right but I want it to start right from the top of the donut i.e. 0 degrees.

任何建议/解决方案?

Shyam

推荐答案

没有饼图属性可以自动执行此操作。有很多变通方法。例如:在数据库查询中使用ORDER BY,使用Chart.DataManipulator.Sort手动将点添加到数据末尾的图表中,调用Series.Points.Reverse ..
等。

There is no pie chart property that does this automatically. There are loads of workarounds. For example: ORDER BY in your database query, manually adding points to the chart starting from the end of the data, using Chart.DataManipulator.Sort, calling Series.Points.Reverse.. etc.

使用自定义属性


Chart1.Series(0)("PieStartAngle") = "270"


这篇关于馅饼或甜甜圈图表方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 04:06
查看更多