Esempio n. 1
0
 private void Awake()
 {
     if (data == null)
     {
         data = new PieData(new PieDataSet());
     }
     if (config == null)
     {
         config = new PieChartConfig();
     }
 }
Esempio n. 2
0
        protected override void Awake()
        {
            base.Awake();

            if (data == null)
            {
                data = new PieData(new PieDataSet());
            }
            if (config == null)
            {
                config = new PieChartConfig();
            }
        }
        private void ConfigChart()
        {
            // accessing and editing current config
            pieChart.Config.InnerPadding             = 40;
            pieChart.Config.ValueIndicatorFontSize   = 18;
            pieChart.Config.ValueIndicatorLineLength = 30;
            pieChart.Config.ValueIndicatorColor      = Color.white;
            pieChart.Config.ValueIndicatorVisibility = PieChartConfig.ValueIndicatorVisibilityMode.ONLY_SELECTED;

            // setting new config
            PieChartConfig config = new PieChartConfig {
                InnerPadding             = 40,
                ValueIndicatorFontSize   = 18,
                ValueIndicatorLineLength = 30,
                ValueIndicatorColor      = Color.white,
                ValueIndicatorVisibility = PieChartConfig.ValueIndicatorVisibilityMode.ONLY_SELECTED
            };

            pieChart.Config = config;
        }
Esempio n. 4
0
 void Reset()
 {
     data   = new PieData(new PieDataSet());
     config = new PieChartConfig();
 }