Incremented date and custom text in bottom axes label
Posted: Mon Mar 01, 2010 9:17 am
Hello,
i have you a technical question about chart. if you look example in below.
To add customXValue, i can make like below
But when i want to show date in X axis relativly with 7 days increment. The code,which in above does not work. Increment is not right.
But when i make to TeeChart.AxisLabelStyle.Text to TeeChart.AxisLabelStyle.Value ,Increment works right, but customXValue is not shown in chart.
My question is that. How can i make my dates increment in X axis and also how can i show my customXValue next to increment date.
Thanks,
Aytaç Kargınoğlu
i have you a technical question about chart. if you look example in below.
To add customXValue, i can make like below
Code: Select all
ch1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Text;
DateTime date = DateTime.Parse(xValue);
xValue = date.ToString("dd/MM");
series.Add(date, Convert.ToDouble(yValue), xValue + Environment.NewLine + customXValue);
ch1.Axes.Bottom.Increment = 7; // Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.HalfMonth);
ch1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM";
ch1.Series.Add(series);
But when i want to show date in X axis relativly with 7 days increment. The code,which in above does not work. Increment is not right.
But when i make to TeeChart.AxisLabelStyle.Text to TeeChart.AxisLabelStyle.Value ,Increment works right, but customXValue is not shown in chart.
My question is that. How can i make my dates increment in X axis and also how can i show my customXValue next to increment date.
Thanks,
Aytaç Kargınoğlu