2013-03-15 45 views
0

是否可以水平顯示條形圖?水平圖表條(Silverlight工具包)

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

回答

1

是的,這是可能的,你應該只由BarSeries更換ColumnSeries

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