コード例 #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
ファイル: BarChart.cs プロジェクト: zhouy546/DataVisualize
        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();
 }