mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 21:40:41 +00:00
增加DataZoom实现区域缩放
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user