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
close icon

Column and Axis Label Positioning in Column Charts

Hi,

Is it possible to alter the position of the columns (and corresponding X-axis labels) in a column chart so that the columns are positioned between the ticks rather than centred on them?

I've attached an image that shows what I currently have, and a mock-up of what I'm trying to achieve.

Best regards,

Gary




ChartColumnPositioning_4cc9574.png

2 Replies

VV Venkata Vijayaraj B Syncfusion Team July 23, 2009 02:45 PM UTC

Hi Gary,

Sorry for the inconvenience caused. we don’t have direct support to move only the column and label.

We have property to move the Column with label and Tick mark.
property:
this.chartControl1.PrimaryXAxis.PointOffset = 0.5;

But, We can meet this by drawing custom tick marks. This can be achieved by using 'this.chartControl1.PrimaryXAxis.PointOffset' property, 'this.chartControl1.ChartAreaPaint' event.

I have attached the sample for this.

Sample Link:
http://files.syncfusion.com/support/Chart.Windows/v7.3.0.20/F88429/main.htm

Please let me know if this meets your requirement.

Regards,
Venkat.


GN Gary Nicol July 23, 2009 04:31 PM UTC

Hi Venkat,

That will meet our requirements.

Many thanks for taking the time to write the sample code.

Best regards,

Gary

Loader.
Live Chat Icon For mobile
Up arrow icon