Regarding Position Ticks

Hi

Is it possible that i get the position of the Ticks in regarding of X,Y coordiantes.One thing more that i want to display the ticks after some fixed interval For E.g our X axis 10,20,30,40,50,60,70,80,90,100 and So on I want that Tick to after 3 then it Shows only on 4 Plz Plz help me


1 Reply

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


Loader.
Up arrow icon