增加DataZoom实现区域缩放

This commit is contained in:
monitor1394
2019-06-13 09:53:03 +08:00
parent 06e760de8b
commit f06034b3d5
21 changed files with 101237 additions and 2155 deletions

View File

@@ -65,7 +65,13 @@ namespace XCharts
m_AngleList.Add(0);
continue;
}
float value = m_Series.series[i].data[0];
var data = m_Series.series[i].data;
if(data.Count <= 0)
{
m_AngleList.Add(0);
continue;
}
float value = data[0];
float degree = totalDegree * value / dataTotal;
float toDegree = startDegree + degree;