0

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.

Magesh
  • 11
  • 3
  • You can set a MarkerStyle/Color/size per DataPoint . – TaW Jun 06 '19 at 18:05
  • @TaW Thanks for your response. But It changes to all the data points. Could you please tell how to set MarkerStyle/Color/Size for a Single DataPoint? – Magesh Jun 07 '19 at 03:24
  • [Example](https://stackoverflow.com/questions/39065172/is-there-a-way-to-draw-a-point-on-a-polar-chart/39066079#39066079) – TaW Jun 07 '19 at 05:37

0 Answers0