J.
J.Nagarajan
Syncfusion Team
July 11, 2008 01:14 PM UTC
Hi Pankaj ,
You can not set the Ticks at the specified intervals. As a work around you have to handle ChartAreaPaint event and you can draw the your custom rectangle at the specified intervals of axis labels . Please try the following.
//Set Tick's Color to Transparent.
this.chartControl1.PrimaryXAxis.TickColor = Color.Transparent;
this.chartControl1.PrimaryXAxis.TickSize = 10;
//Here you have to draw filled rectangle
void chartControl1_ChartAreaPaint(object sender, PaintEventArgs e)
{
//You can Adjust location.
e.Graphics.FillRectangle(Brushes.Green,new Rectangle(120,580,10,10)
}
Please try this and let me know if this helps.
Regards,
Nagaraj