Пример #1
0
        protected override void Awake()
        {
            base.Awake();

            if (data == null)
            {
                data = new BarData(new BarDataSet());
            }
            if (config == null)
            {
                Config = new BarChartConfig();
            }

            XAxis.AutoAxisMinValue = true;
            XAxis.AutoAxisMaxValue = true;
        }
Пример #2
0
        protected override void Awake()
        {
            base.Awake();

            if (data == null)
            {
                data = new BarData(new BarDataSet());
            }
            if (config == null)
            {
                Config = new BarChartConfig();
            }
            if (axisConfig == null)
            {
                axisConfig = new BarChartAxisConfig();
            }

            positioner                   = new BarCharPositioner();
            barInstances                 = new List <Bar> ();
            verticalLabelsProvider       = new VerticalAxisLabelEntryProvider();
            horizontalLabelsProvider     = new BarAxisLabelEntryProvider();
            verticalAxisValueFormatter   = new BasicAxisValueFormatter();
            horizontalAxisValueFormatter = new BarAxisValueFormatter();
        }
Пример #3
0
 void Reset()
 {
     data   = new BarData(new BarDataSet());
     Config = new BarChartConfig();
 }