示例#1
0
        public void RPT_6_SetGallery(SeriesChartType gallery, int startSerisePos, int SeriseSize, string title, AsixType asixType, DataTypes type, double maxValue, double minValue)
        {
            for (int i = startSerisePos; i < startSerisePos + SeriseSize; i++)
            {
                SetChartType(gallery, this.Series[i]);

                if (asixType == AsixType.Y)
                {
                    this.Series[i].YAxisType = AxisType.Primary;
                }
                else
                {
                    this.Series[i].YAxisType = AxisType.Secondary;
                }
            }

            //// Secondary 좌표를 쓰는 경우 꼭 호출해줘야 함.
            //this.RecalcScale();

            if (asixType == AsixType.Y)
            {
                this.ChartAreas[0].AxisY.Title = title;
                //// Percent 때문에... ^^
                //if (((int)type) < 3)
                //    this.AxisY.LabelsFormat.Decimals = (int)type;
                //else
                //    this.AxisY.LabelsFormat.Decimals = (int)type - 3;

                this.ChartAreas[0].AxisY.Maximum = maxValue;

                if (minValue != 0.6221)
                {
                    this.ChartAreas[0].AxisY.Minimum = minValue;
                }

                //this.AxisY.DataFormat.Decimals = 3;
                ////this.AxisY.DataFormat.Format = type;
            }
            else
            {
                this.ChartAreas[0].AxisY2.Title = title;
                //// Percent 때문에... ^^
                //if (((int)type) < 3)
                //    this.AxisY2.LabelsFormat.Decimals = (int)type;
                //else
                //    this.AxisY2.LabelsFormat.Decimals = (int)type - 3;

                this.ChartAreas[0].AxisY2.Maximum = maxValue;

                if (minValue != 0.6221)
                {
                    this.ChartAreas[0].AxisY.Minimum = minValue;
                }

                //this.AxisY.DataFormat.Decimals = 3;
                ////this.AxisY.DataFormat.Format = type;
            }
        }
示例#2
0
 // 화면의 차트타입을 결정
 public void RPT_6_SetGallery(SeriesChartType gallery, string title, AsixType asixType, DataTypes type, double maxValue)
 {
     // minValue 가 0.6221 이면 셋팅안함..
     RPT_6_SetGallery(gallery, title, asixType, type, maxValue, 0.6221);
 }
示例#3
0
 public void RPT_6_SetGallery(SeriesChartType gallery, int startSerisePos, int SeriseSize, string title, AsixType asixType, DataTypes type, double maxValue)
 {
     RPT_6_SetGallery(gallery, startSerisePos, SeriseSize, title, asixType, type, maxValue, 0.6221);
 }
示例#4
0
        public void RPT_6_SetGallery(ChartType gallery, int startSerisePos, int SeriseSize, string title, AsixType asixType, DataTypes type, double maxValue, double minValue)
        {
            for (int i = startSerisePos; i < startSerisePos + SeriseSize; i++)
            {
                SetChartType(gallery, this.Series[i]);

                if (asixType == AsixType.Y)
                {
                    this.Series[i].YAxis = SoftwareFX.ChartFX.YAxis.Main;
                }
                else
                {
                    this.Series[i].YAxis = SoftwareFX.ChartFX.YAxis.Secondary;
                }
            }

            // Secondary 좌표를 쓰는 경우 꼭 호출해줘야 함.
            this.RecalcScale();

            if (asixType == AsixType.Y)
            {
                this.AxisY.Title.Text = title;
                // Percent 때문에... ^^
                if (((int)type) < 3)
                {
                    this.AxisY.LabelsFormat.Decimals = (int)type;
                }
                else
                {
                    this.AxisY.LabelsFormat.Decimals = (int)type - 3;
                }
                this.AxisY.Max = maxValue;
                if (minValue != 0.6221)
                {
                    this.AxisY.Min = minValue;
                }

                this.AxisY.DataFormat.Decimals = 3;
                //this.AxisY.DataFormat.Format = type;
            }
            else
            {
                this.AxisY2.Title.Text = title;
                // Percent 때문에... ^^
                if (((int)type) < 3)
                {
                    this.AxisY2.LabelsFormat.Decimals = (int)type;
                }
                else
                {
                    this.AxisY2.LabelsFormat.Decimals = (int)type - 3;
                }
                this.AxisY2.Max = maxValue;
                if (minValue != 0.6221)
                {
                    this.AxisY.Min = minValue;
                }

                this.AxisY.DataFormat.Decimals = 3;
                //this.AxisY.DataFormat.Format = type;
            }
        }