2013-04-02 66 views
0

你好,圖在窗口電話7

我用圖表控件在我的應用。我將Date綁定爲IndependentValueBinding(X軸)。所有的代碼工作正常,但日期是水平顯示所以,如果我有很多值,我不會找到與日期相關的完美值,因爲有很多日期在X軸。那麼如何在X軸上顯示日期爲垂直。

<chart:BarSeries 
        IndependentValueBinding="{Binding Date}" 
        DependentValueBinding="{Binding Price}"/> 
       <chart:Chart.LegendStyle> 
       <Style TargetType="datavisual:Legend"> 
        <Setter Property="Width" Value="0"/> 
        <Setter Property="Height" Value="0"/> 

       </Style> 
      </chart:Chart.LegendStyle> 
     </chart:Chart> 

感謝, 亞太區首席技術官Matt

回答

0

您將需要設置AxisLabelStyle的風格,我想圖表的WP版本應該是一樣的Silverlight: How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart

+0

我已經嘗試過這一點,但我可以找不到System.Windows.Controls.Layout.Toolkit。所以它給了我錯誤。 – Hitesh

+0

您可以在Windows Phone中使用此佈局變換器的實現http://blogs.msdn.com/b/delay/archive/2010/08/26/your-phone-can-turn-into-a-robot-layouttransformer-作品 - 偉大的在Windows Phone-platform.aspx – outcoldman

+0

我想要圖表控制,並在例如它給列表框。我試過,但我不知道如何使用圖表control.it不適合我。 – Hitesh