Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PieChart.cs 500B

1234567891011121314151617181920
  1. using UnityEngine;
  2. namespace XCharts.Runtime
  3. {
  4. [AddComponentMenu("XCharts/PieChart", 15)]
  5. [ExecuteInEditMode]
  6. [RequireComponent(typeof(RectTransform))]
  7. [DisallowMultipleComponent]
  8. public class PieChart : BaseChart
  9. {
  10. protected override void DefaultChart()
  11. {
  12. var legend = GetOrAddChartComponent<Legend>();
  13. legend.show = true;
  14. RemoveData();
  15. Pie.AddDefaultSerie(this, GenerateDefaultSerieName());
  16. }
  17. }
  18. }