窗口电话7中的图表

时间:2013-04-02 06:11:28

标签: windows-phone-7

您好,

我在我的应用程序中使用了图表控件。我已将Date绑定为IndependentValueBinding(X Axis)。所有代码都工作正常但日期显示为水平所以如果我有很多值,我找不到与日期相关的完美值,因为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

1 个答案:

答案 0 :(得分:0)

您需要为AxisLabelStyle设置样式,我认为WP版的图表应该与Silverlight相同: How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart