public ChartPanel(MetingType type, SeriesChartType charttype)
            : base()
        {
            this.type = type;
            this.ChartType = charttype;

            this.chart = new Chart();
            this.chartArea = new ChartArea();
            this.chart.Titles.Add(new Title(type.ToString()));

            this.Location = new System.Drawing.Point(0, 0);

            this.Size = new System.Drawing.Size(400, 250);
            this.Controls.Add(chart);

            this.series = createSerie();
            this.chartArea.Name = "chartArea";

            this.chart.Size = new System.Drawing.Size(400, 250);

            this.chart.Dock = DockStyle.Fill;
            this.chart.Series.Add(series);
            this.chart.Text = "chart";

            this.chart.ChartAreas.Add(chartArea);
        }
Exemplo n.º 2
0
        public ChartPanel(MetingType type, SeriesChartType charttype) : base()
        {
            this.type      = type;
            this.ChartType = charttype;

            this.chart     = new Chart();
            this.chartArea = new ChartArea();
            this.chart.Titles.Add(new Title(type.ToString()));

            this.Location = new System.Drawing.Point(0, 0);

            this.Size = new System.Drawing.Size(400, 250);
            this.Controls.Add(chart);

            this.series         = createSerie();
            this.chartArea.Name = "chartArea";

            this.chart.Size = new System.Drawing.Size(400, 250);

            this.chart.Dock = DockStyle.Fill;
            this.chart.Series.Add(series);
            this.chart.Text = "chart";


            this.chart.ChartAreas.Add(chartArea);
        }
Exemplo n.º 3
0
        public ChartPanel(MetingType type, SeriesChartType charttype,bool showTitle)
            : base()
        {
            this.type = type;
            this.ChartType = charttype;

            this.chart = new Chart();
            this.chartArea = new ChartArea();
            if(showTitle)
                this.chart.Titles.Add(new Title(type.ToString()));

            this.Location = new System.Drawing.Point(0, 0);
            this.Dock = DockStyle.Top;
            this.Size = new System.Drawing.Size(300, 200);
            this.Controls.Add(chart);

            this.series = createSerie();
            this.chartArea.Name = "chartArea";

            this.chart.Size = new System.Drawing.Size(300, 200);

            this.chart.BackColor = System.Drawing.Color.WhiteSmoke;
            this.chart.Dock = DockStyle.Top;
            this.chart.Series.Add(series);
            this.chart.Text = "chart";

            this.chart.ChartAreas.Add(chartArea);
            List<Meting> test = new List<Meting>();
            test.Add(new Meting(104, 0, 0, 0, 0, 0, 0, 0, 0));
            test.Add(new Meting(110, 0, 0, 0, 0, 0, 0, 0, 0));
            test.Add(new Meting(130, 0, 0, 0, 0, 0, 0, 0, 0));
            test.Add(new Meting(150, 0, 0, 0, 0, 0, 0, 0, 0));
            test.Add(new Meting(180, 0, 0, 0, 0, 0, 0, 0, 0));
            test.Add(new Meting(200, 0, 0, 0, 0, 0, 0, 0, 0));
            updateChart(test);
        }