using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.Windows.Forms.DataVisualization.Charting;namespace WindowsFormsApp1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { chart1.Series.Clear(); chart1.Titles.Clear(); Series series = new Series(); series.Name = "My Series Test"; series.ChartType = SeriesChartType.Line; this.chart1.Series.Add(series); //AddXY value in chart1 in series index 0 // for (int ix= 360; ix <=750; ix+= 10) { chart1.Series[0].Points.AddXY(ix, ix); } //chart title chart1.Titles.Add("Spectrum Test"); } }}
CodeProject
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)