We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Regarding Position Ticks

Thread ID:

Created:

Updated:

Platform:

Replies:

74984 Jul 7,2008 02:21 PM UTC Jul 11,2008 01:14 PM UTC Windows Forms 1
loading
Tags: Chart
Administrator [Syncfusion]
Asked On July 7, 2008 02:21 PM UTC

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


J.Nagarajan [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;