Prasant Jinaga

Prasant Jinaga

  • 1k
  • 751
  • 425.2k

Swap the Axes of the Barchart in Silverlight

Aug 19 2011 12:51 AM
Hi All,

I have a Barchart in my Silverlight Application which are binded with two values i.e date is showing in the Y-Axis and Records are showing in X-Axis..But i want to show Date in X-axis and Records in Y-Axis.Can any one help on this please...
Here i am binded like this...


<chartingToolkit:Chart HorizontalAlignment="Left" Margin="28,287,0,0" Name="LoadedRecords" VerticalAlignment="Top" Width="439" Height="180">
<chartingToolkit:Chart.Series>
<chartingToolkit:BarSeries Title="Loaded Records" ItemsSource="{Binding}" IndependentValueBinding="{Binding RowAddedOn}" DependentValueBinding="{Binding Records}">
</chartingToolkit:BarSeries>
</chartingToolkit:Chart.Series>
</chartingToolkit:Chart>

Now to Swap the Axes of the Chart With the Values!!!
Please help on this....

Thanks,
Prasant

Answers (2)