Ticket T396432
Visible to All Users

How to force DevExpress chart to show labels only for available values?

created 9 years ago (modified 9 years ago)

Original source of the question

Let me try to explain the problem:
We have a DevExpress scattered point chart:

To which we need to bind the following data:

We need to show the first column provider id as X axis' series label.
Now, if we look at the chart, there're only four places where the X axis' series label is required however, there're multiple X axis' series labels.

We need to show the X axis' series labels only for the points for which we have data on Y axis.
It's understood that the chart is automatically adjusting the X axis' series label as numbers.
How can one force chart to show labels only for available values?

- @xameeramir

Answers approved by DevExpress Support

created 9 years ago

Hi Zameer,

To accomplish this, adjust the Series.ArgumentScaleType property and set it to Qualitative.

    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.