[英]How to force DevExpress chart to show labels only for available values?
Let me try to explain the problem: 让我尝试解释这个问题:
We need to show the first column provider id
as X axis' series label. 我们需要将第一列provider id
为X轴的系列标签。
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. 现在,如果我们看一下图表,只有四个地方需要X轴的系列标签,但是,有多个X轴的系列标签。
We need to show the X axis' series labels only for the points for which we have data on Y axis. 我们只需要为Y轴上有数据的点显示X轴的系列标签。
It's understood that the chart is automatically adjusting the X axis' series label as numbers. 可以理解,该图表会自动将X轴的系列标签调整为数字。
How can one force chart to show labels only for available values? 一个力图如何只显示可用值的标签?
To accomplish this, adjust the Series.ArgumentScaleType
property and set it to Qualitative
. 为此,请调整Series.ArgumentScaleType
属性并将其设置为Qualitative
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.