1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
string path = "C:/Users/Lucas/Documents/test.csv";
chart1.DataSource = DataLoader.Load(path);
chart1.Series.Clear();
chart1.Series.Add(
new Series()
{
XValueMember = "Heure",
YValueMembers = "TemperatureInterieur",
ChartType = SeriesChartType.Line,
IsVisibleInLegend = true,
IsValueShownAsLabel = true,
LegendText = "Température intérieure"
});
chart1.Series.Add(
new Series()
{
XValueMember = "Heure",
YValueMembers = "TemperatureExterieur",
ChartType = SeriesChartType.Line,
IsVisibleInLegend = true,
IsValueShownAsLabel = true,
LegendText = "Température extérieure"
});
chart1.Series.Add(
new Series()
{
XValueMember = "Heure",
YValueMembers = "TemperatureBatterie",
ChartType = SeriesChartType.Line,
IsVisibleInLegend = true,
IsValueShownAsLabel = true,
LegendText = "Température batterie"
}); |
Partager