1
내 WPF Chart 개체에서 Y 축을 뒤집고 싶습니다. http://i.stack.imgur.com/M0oaA.jpgWPF Toolkit Chart Y 축 내림차순 정렬
사용이 XAML 코드를 시도하는이 내가 들어:
<my:Chart Name="chart1">
<my:Chart.Axes>
<my:CategoryAxis Orientation="Y" ShowGridLines="True" SortOrder="Descending" />
<my:CategoryAxis Orientation="X" />
</my:Chart.Axes>
<my:Chart.Series>
<my:LineSeries x:Name="ser"
IndependentValueBinding="{Binding Value}"
DependentValueBinding="{Binding Key}" AnimationSequence="FirstToLast" />
</my:Chart.Series>
</my:Chart>
을 그리고 데이터 바인딩이 :
Dictionary<int, int> source2 = new Dictionary<int, int>();
source2.Add(13, 1);
source2.Add(23, 2);
source2.Add(33, 3);
source2.Add(10, 4);
ser.ItemsSource = source2;
그러나 결과 내 Y 축이 정상 오름차순 sord 순서가 있습니다. 내가 뭘 잘못 했니? 감사;
당신의 대답은 ... 조금 모호 당신은 몇 가지 코드를 게시 줄래? – Entity
공식 예제에는이 코드가 들어 있습니다. 나는이 archieve에 하이퍼 링크를 잃었습니다. ( – Dmitriy
답에 누락 된 링크를 추가했습니다. –