I have three problems with .NET- sorry it might be a long one. I really appreciate any helps or suggestions.
1- With GetAxisLabel event- it seem doesn't work with date/time on XAxis. For example my baseline date is 05-Jan-2005 04:00:00 and my series is plotting from 04-Jan-2005 00:00:00, 04-Jan-2005 01:00:00, etc to 06-Jan-2005 20:00:00 and I set the format of my bottom axes to
Code: Select all
ctrChart.Axes.Bottom.Labels.DateTimeFormat = "HH:mm:ss";
Code: Select all
private void ctrChart_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
{
DateTime xValue = Convert.ToDateTime(e.LabelText);
if (sender==ctrChart.Axes.Bottom)
{
if (xValue< datBaseLine)
((Axis)sender).Labels.Font.Color=Color.Red;
else
((Axis)sender).Labels.Font.Color=Color.Blue;
}
}
3- Could you please suggest how can we use TeeChart to chart with clear grid the same as perfermance chart in Windows Task manager. What I mean is that I want to build my chart the same it CPU Usage History line chart.
Many thanks
LG