Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MSCHARTChartAreaにシリーズを動的に追加する必要があります。データテーブルから列名を取得します。シリーズ名は列名である必要があります。SERIES ADDを文字列で作成できますが、それではどうしますか?
Series Trigger_Level = chart1.Series.Add("Trigger Level");
C#での開発
シリーズは、次のコードで動的に追加できます。
chart1.Series["Trigger Level"].ChartArea = "ChartArea1"; chart1.Series.Points.Add(myPoint1); chart1.Series.Points.Add(myPoint2); chart1.Series.Points.Add(myPoint3); chart1.Series.Points.Add(myPoint4);