In this example we just insert y-data :
Code: Select all
//private PersistentSeriesRenderingIntensityLayer m_historicDataLayer;
private void RenderTrace(double[] samples)
{
SampleDataSeries trace = m_chart.ViewXY.SampleDataSeries[0];
if (m_historicDataLayer == null)
{
CreatePersistentLayer();
}
trace.SamplesDouble = samples;
m_historicDataLayer.RenderSeries(trace);
}
Code: Select all
m_chart.ViewXY.XAxes[0].FormatValueLabel += new AxisBase.FormatValueLabelHandler(ExamplePersistentIntensitySignal_FormatValueLabel);
private string ExamplePersistentIntensitySignal_FormatValueLabel(AxisBase axis, double value)
{
// Convert seconds decimals into milliseconds in GUI.
return (value * 1000.0).ToString("0");
}
is it "value" in above function related to range of X axes or length of samples , "trace.SamplingFrequency" or other things? what is that exactly?