mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 23:40:10 +00:00
增加Default、Light、Dark主题
This commit is contained in:
@@ -22,13 +22,13 @@ namespace xcharts
|
||||
public float right;
|
||||
public float top;
|
||||
public float bottom;
|
||||
public List<PieData> dataList;
|
||||
public List<PieData> dataList = new List<PieData>();
|
||||
}
|
||||
|
||||
public class PieChart : BaseChart
|
||||
{
|
||||
[SerializeField]
|
||||
private PieInfo pieInfo;
|
||||
private PieInfo pieInfo = new PieInfo();
|
||||
|
||||
private float pieCenterX = 0f;
|
||||
private float pieCenterY = 0f;
|
||||
@@ -63,7 +63,7 @@ namespace xcharts
|
||||
pieInfo.insideRadius + (pieRadius - pieInfo.insideRadius) * value / dataMax :
|
||||
pieRadius;
|
||||
ChartUtils.DrawDoughnut(vh, new Vector3(pieCenterX, pieCenterY), pieInfo.insideRadius,
|
||||
outSideRadius,startDegree, toDegree, legend.GetColor(i));
|
||||
outSideRadius,startDegree, toDegree, themeInfo.GetColor(i));
|
||||
startDegree = toDegree;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user