I have the following graph in my Windows Form
:
IconfiguredtheXaxistodisplayTime,asshownbelow:
BelowarethemethodsIcalldrawing:
privatevoidfuncaoQualquer(){while(true){funcaoArray[funcaoArray.Length-1]=hScrollBar1.Value;Array.Copy(funcaoArray,1,funcaoArray,0,funcaoArray.Length-1);if(chart1.IsHandleCreated){this.Invoke((MethodInvoker)delegate{atualizaGraficoFuncaoQualquer(hScrollBar1.Value);});}else{//...}Thread.Sleep(250);}}privatevoidatualizaGraficoFuncaoQualquer(intvalor){for(inti=0;i<funcaoArray.Length-1;++i){chart1.Series["Series1"].Points.Add(valor);
}
}
However, when drawing the graph and over time, the X-axis does not change the values. I think it's being displayed as hours. How do I change to minutes or seconds?