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. Image for the cookie policy date

how to position axis labels when rotated

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

3 Replies

AD Administrator Syncfusion Team February 14, 2007 04:51 AM UTC

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


SR srikanth August 3, 2007 12:40 PM UTC


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


GR Golda Rebecal Syncfusion Team September 27, 2007 06:12 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon