2013-03-15 2 views
0

Est-il possible d'afficher les barres horizontalement?Barres de graphique horizontales (Silverlight Toolkit)

<Grid x:Name="LayoutRoot" Background="White"> 
     <StackPanel> 
      <toolkit:Chart Height="400" Width="600" Title="Mered data" >    
        <toolkit:ColumnSeries ItemsSource="{Binding AverageImpressionLengths}" IndependentValueBinding="{Binding SeqName}" 
              DependentValueBinding="{Binding Time}" 
              HorizontalAlignment="Left" Height="304" VerticalAlignment="Top" Width="266"/> 

      </toolkit:Chart> 
     </StackPanel> 
    </Grid> 

Répondre

1

Oui, il est possible, vous devez simplement remplacer ColumnSeries par BarSeries:

<toolkit:Chart Height="400" Width="600" Title="Mered data" >    
    <toolkit:BarSeries ItemsSource="{Binding AverageImpressionLengths}" 
      IndependentValueBinding="{Binding SeqName}" 
      DependentValueBinding="{Binding Time}" /> 
</toolkit:Chart> 
Questions connexes