水平图表栏(Silverlight Toolkit)

时间:2013-03-15 18:57:28

标签: .net xaml charts silverlight-toolkit bar-chart

是否可以水平显示条形图?

  <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 个答案:

答案 0 :(得分:1)

是的,您可以将ColumnSeries替换为BarSeries

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