コード例 #1
0
        private void SetAxis(c.Flip details)
        {
            double min = 1000;
            double max = 0;

            for (int i = 0; i < details.getNoRow(); i++)
            {
                for (int j = 3; j < (details.getNoColumns()) - 1; j++)
                {
                    double minVal = (double)c.at(details.y[j], i);
                    double maxVal = (double)c.at(details.y[j], i);

                    if (minVal < min)
                    {
                        min = minVal;
                    }
                    if (maxVal > max)
                    {
                        max = maxVal;
                    }
                }
            }
            reportChart.ChartAreas[0].AxisY.Minimum      = min - 0.0025;
            reportChart.ChartAreas[0].AxisY.Maximum      = max + 0.0025;
            reportChart.ChartAreas[0].AxisX.IntervalType = DateTimeIntervalType.Minutes;
        }