我正在使用WPF Toolkit进行制图。我有问题,我无法解决:
有什么想法吗?
图表的XAML:
<charting:Chart BorderThickness="0"
x:Name="StackedLineChart"
Title=""
Margin="5">
<charting:Chart.Axes>
<charting:DateTimeAxis Interval="1" IntervalType="Months" x:Name="myDateTimeAxis"
Orientation="X" Title="Date">
<charting:DateTimeAxis.AxisLabelStyle>
<Style TargetType="charting:DateTimeAxisLabel">
<Setter Property="StringFormat" Value="{}{0:MMMM}"/>
</Style>
</charting:DateTimeAxis.AxisLabelStyle>
</charting:DateTimeAxis>
<charting:LinearAxis Orientation="Y" ShowGridLines="True" x:Name="myYAxis"
Title="Schedules count"/>
</charting:Chart.Axes>
<charting:Chart.LegendStyle>
<Style TargetType="datavis:Legend">
<Setter Property="Width" Value="0" />
</Style>
</charting:Chart.LegendStyle>
<charting:Chart.Series>
<charting:ColumnSeries ItemsSource="{Binding Data}"
IndependentValuePath="Date"
IsSelectionEnabled="True"
DependentValuePath="1Value">
</charting:ColumnSeries>
<charting:ColumnSeries ItemsSource="{Binding Data}"
IndependentValuePath="Date"
IsSelectionEnabled="True"
DependentValuePath="2Value">
</charting:ColumnSeries>
<charting:ColumnSeries ItemsSource="{Binding Data}"
IndependentValuePath="Date"
IsSelectionEnabled="True"
DependentValuePath="3Value">
</charting:ColumnSeries>
</charting:Chart.Series>
</charting:Chart>