質問

As you can clearly see the XAMDataChart is skipping putting the label on every other column.

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.

enter image description here

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                        
     };

 }               
役に立ちましたか?

解決

The answer to this question is setting the Category X Axis objects interval to 1.

catX.Interval = 1;
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top