Ticket T714453
Visible to All Users

How to display integer axis values with automatic GridSpacing settings

created 6 years ago

[DevExpress Support Team: CLONED FROM Q143332: Force bar chart Y axis scale to be integer-only]
Is there any way to have gridspacingauto = true, but have the grid NOT show decimals when y-axes values are low?

I like the function of the auto, but when the values are less than 5, for instance, the y-axes starts showing decimals.  This confuses my users who expect to see whole units (integers) only.

Answers approved by DevExpress Support

created 6 years ago

Hi Irina,

We provide a special mechanism to provide a custom numeric measure unit depending on the current axis range when its scale settings are calculated automatically. Please refer to the How to: Use Custom Measure Units in an Automatic Numeric Scale Mode documentation article for a sample code snippet.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.