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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column style width

Thread ID:

Created:

Updated:

Platform:

Replies:

38250 Dec 8,2005 08:14 PM UTC Dec 12,2005 12:12 PM UTC WinForms 3
loading
Tags: Chart
Terry Foster
Asked On December 8, 2005 08:14 PM UTC

I''m charting a column-style series on a time-based x axis and am noticing that the column width seems based on a day, so that if my series consists of points spaced a year apart, the columns end up just looking like lines, apparently because the chart is zoomed out so far. I do know about ColumnWidthMode property on the chart. Is there a better way to make consistent-looking column widths than for me to set the width manually? Thanks, Terry

Geetha M [Syncfusion]
Replied On December 9, 2005 03:36 PM UTC

Hi Terry, There is a possibility of specifying the width of the column as the second y value. But this also requires the ColumnWidthMode to be set to either FixedWidthMode or RelativeWidthMode. Kindly refer the attached sample which illustrates this. Please let me know if you need any more clarifications. We will be glad to assist you. Thanks and Regards, Geetha

F38250.zip

Terry Foster
Replied On December 9, 2005 06:08 PM UTC

I did more research and it does indeed appear that the default width is one day. Do you know if this is a property somewhere that I can set? If it is not exposed, could you point me to where in your code this is being detemined and maybe I could play with some overrides or something. This just seems like the exact property that I need, as opposed to the other ones we''ve talked about, unless I''m not understanding them fully. Thanks, Terry

Geetha M [Syncfusion]
Replied On December 12, 2005 12:12 PM UTC

Hi Terry, Sorry for the inconvenience caused. I think I had misunderstood your question in the first post. You can set the width manually using the ColumnFixedWidth property. That is, when you set the ColumnWidthMode as FixedWidthMode, the default width taken will be 20. You can change this value by assigning your own value through the ColumnFixedWidth. The following is an illustration of this: this.chartControl1.ColumnWidthMode = ChartColumnWidthMode.FixedWidthMode ; this.chartControl1.ColumnFixedWidth = 40; I hope this helps you. Regards, Geetha

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

;