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.

how to position axis labels when rotated

Thread ID:

Created:

Updated:

Platform:

Replies:

56323 Feb 13,2007 12:47 PM Sep 27,2007 02:12 AM Windows Forms 3
loading
Tags: Chart
Ben Tsai
Asked On February 13, 2007 12:47 PM

Hi,

Right now, the labels for the PrimaryXAxis are right up against the axis itself. I would like to create some space between the label and the axis. Normally, I can set the PrimaryXAxis.TickSize to space it out, but this does not work when the label is rotated.

Please take a look at my example. How can I get it so the label is not so close to the axis?

Thanks, BenT

Syncfusion 4.4.0.51
VS 2005 SP1

RotatePlacement.zip

Administrator [Syncfusion]
Replied On February 13, 2007 11:51 PM

Hi BenT,

Thank You for your interest in Syncfusion Products.

You can create space between the axis and labels by aligning labels as shown in the code snippet below,

this.chartControl1.PrimaryXAxis.LabelAligment = StringAlignment.Near;

The ticks can be created with specified size by assigning a value to the TickSize after the addition of Series.

I modified your sample and attached with this post.

Kindly take a look at the sample and let me if you have any queries.

Thanks & Regards,
Ramya.

RotatePlacement0.zip

srikanth
Replied On August 3, 2007 08:40 AM


hai i am just new to this chart control

my question is

after setting the OpposedPosition true for primary X axis the datetime lables are not displaying properly it is going out of the range i just want to show near to the Opposed x axis just like before with out OpposedPosition of X axis

me.chart.ChartWebArea.PrimaryXAxis.OpposedPosition = True



>Hi BenT,

Thank You for your interest in Syncfusion Products.

You can create space between the axis and labels by aligning labels as shown in the code snippet below,

this.chartControl1.PrimaryXAxis.LabelAligment = StringAlignment.Near;

The ticks can be created with specified size by assigning a value to the TickSize after the addition of Series.

I modified your sample and attached with this post.

Kindly take a look at the sample and let me if you have any queries.

Thanks & Regards,
Ramya.

RotatePlacement0.zip

Golda Rebecal [Syncfusion]
Replied On September 27, 2007 02:12 AM

Hi SriKanth,

I regret for the very long delay in responding.

Please refer to the attached sample that shows datetime labels being displayed properly when OpposedPosition is set to true.
http://websamples.syncfusion.com//samples/Chart.Web/5.1.0.51/F56323/main.htm

Kindly let me know if you need any further assistance.

We appreciate your interest in Syncfusion products

Best regards,
Golda

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.

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.

;