增加DataZoom实现区域缩放

This commit is contained in:
monitor1394
2019-06-13 09:53:03 +08:00
parent 949f6d02aa
commit dfb0b33fe3
19 changed files with 101235 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;