Chart Setup - CSharp System

CSharp examples for System:Char

Description

Chart Setup

Demo Code


using System.Windows.Forms.DataVisualization.Charting;
using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Drawing;
using System.Collections.Generic;
using System;/*from   www.j a  va2 s .  co m*/

public class Main{
        public static void ChartSetup(Chart chart, String seriesName, int borderWidth, Color color, SeriesChartType chartType, ChartValueType xValueType) {
            Series newSeries = new Series(seriesName);
            newSeries.ChartType = chartType;
            newSeries.BorderWidth = borderWidth;
            newSeries.Color = color;
            newSeries.XValueType = xValueType;
            chart.Series.Add(newSeries);

        }
}

Related Tutorials