M
Magesh85
Guest
My objective is to plot a live Time vs Temperature (Line chart) from a device. In that I'm checking each temperature value with a logic to find out my appropriate temperature value. After finding the appropriate temperature, how to highlight/mark that particular point only in my Line chart and continue reading my temperature?
livedataChart.Series.Add("Temperature");
livedataChart.Series["Temperature"].ChartType = SeriesChartType.Line;
for ()
{
Check(maintemperature);
livedataChart.Series["Temperature"].Points.AddXY(time, maintemperature);
}
private void Check(double temp)
{
if (somelogic with temp)
{
MessageBox.Show("Appropriate Temperature is calculated");
}
}
I have tried adding another series (Chart Type as Points) and gave the appropriate temperature in the point series. I got a point near to the Y-axis which is of no use. All i want is to have a point in the running Temperature Line graph.
Continue reading...
livedataChart.Series.Add("Temperature");
livedataChart.Series["Temperature"].ChartType = SeriesChartType.Line;
for ()
{
Check(maintemperature);
livedataChart.Series["Temperature"].Points.AddXY(time, maintemperature);
}
private void Check(double temp)
{
if (somelogic with temp)
{
MessageBox.Show("Appropriate Temperature is calculated");
}
}
I have tried adding another series (Chart Type as Points) and gave the appropriate temperature in the point series. I got a point near to the Y-axis which is of no use. All i want is to have a point in the running Temperature Line graph.
Continue reading...