Hi Bhumi,
We're still not sure what exactly you want to achive, one guess is that you want to display the actual x value (instead of the one generated by the date time axis, which will be day start, hour start, minute start etc. depending on the unit chosen by the scale. If this is the case you can simiply switch the scale in custom ticks mode and pass the x values to the scale as well:
NChart chart = nChartControl1.Charts[0];
NDateTimeScaleConfigurator dtScale = new NDateTimeScaleConfigurator();
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = dtScale;
dtScale.MajorTickMode = MajorTickMode.CustomTicks;
NLineSeries line = new NLineSeries();
chart.Series.Add(line);
line.UseXValues = true;
line.DataLabelStyle.Visible = false;
DateTime current = DateTime.Now;
TimeSpan span = new TimeSpan(0, 4, 0, 0);
Random rand = new Random();
for (int i = 0; i < 10; i++)
{
line.Values.Add(rand.Next(100));
line.XValues.Add(current);
dtScale.CustomMajorTicks.Add(current);
current += span;
}
If this is not the desired result, please elaborate...
Best Regards,
Nevron Support Team