简体   繁体   English

Infragistics XamDataChart-X列标签-一半显示

[英]Infragistics XamDataChart - Column X Labels - half showing up

As you can clearly see the XAMDataChart is skipping putting the label on every other column. 正如您可以清楚地看到的那样,XAMDataChart跳过将标签放在其他每列上。

I have no clue why this is happening. 我不知道为什么会这样。 The code is the same for all of them and I have verified that the data is there. 所有代码都相同,我已经验证了数据是否存在。

在此处输入图片说明

Here is how they are generated 这是它们的产生方式

 CategoryXAxis catX = new CategoryXAxis();
 NumericYAxis numY = new NumericYAxis();
 foreach (var series in control.masterCollection)
 {                    
     catX.Name = "catX";                 
     catX.ItemsSource = series;
     catX.Label = "{Label}";
     catX.Gap = 20;

     numY.Name = "numY";


     ColumnSeries cs = new ColumnSeries()
     {                        
         ItemsSource = series,
         ValueMemberPath = "YPoint",
         XAxis = catX,
         YAxis = numY                        
     };

 }               

该问题的答案是将“类别X轴”对象间隔设置为1。

catX.Interval = 1;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM