Пример #1
0
        private void LineChartBtn_Click(object sender, EventArgs e)
        {
            GdiPlusPainter painter = new GdiPlusPainter(600, 400);
            Chart          chart   = new BrokenLineChart();

            chart.Style.Type = StyleType.Light;
            chart.Draw(painter, data);
            pictureBox1.Image = painter.Bitmap;
        }
Пример #2
0
        private void AddColumnDataBtn_Click(object sender, EventArgs e)
        {
            foreach (DataSeries s in data.Series)
            {
                DataPoint point = new DataPoint();
                point.Value      = data.Series.IndexOf(s) * 30 + 30;
                point.ColumnName = "testaddCol";
                s.Point.Add(point);
            }
            GdiPlusPainter painter = new GdiPlusPainter(600, 400);
            Chart          line    = new BrokenLineChart();

            line.Draw(painter, data);
            pictureBox1.Image = painter.Bitmap;
        }