Ejemplo n.º 1
0
        protected override void Awake()
        {
            base.Awake();

            if (data == null)
            {
                data = new LineData(new LineDataSet());
            }
            if (config == null)
            {
                config = new LineChartConfig();
            }
            if (axisConfig == null)
            {
                axisConfig = new LineChartAxisConfig();
            }

            verticalLabelsProvider       = new VerticalAxisLabelEntryProvider();
            horizontalLabelsProvider     = new HorizontalAxisLabelEntryProvider();
            verticalAxisValueFormatter   = new BasicAxisValueFormatter();
            horizontalAxisValueFormatter = new BasicAxisValueFormatter();
        }
Ejemplo n.º 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();
        }