我正在尝试使用amCharts quickCharts在 wp7 中显示时间线。
<amq:SerialChart DataSource="{Binding MyData}"
CategoryValueMemberPath="Date"
AxisForeground="White"
PlotAreaBackground="Black"
GridStroke="Gray"
Margin="1"
>
<amq:SerialChart.Graphs>
<amq:LineGraph ValueMemberPath="Score"
Title="Scores"
Brush="Blue"/>
</amq:SerialChart.Graphs>
</amq:SerialChart>
MyData
是一个ObservableCollection<ScoreDate>
whereScoreDate
被定义为
public class ScoreDate
{
public int Score{get;set;}
public DateTime Date{get;set;}
}
问题是,X 轴只是被绘制为单个值,跳过没有数据的周期,而不是像我需要的那样作为分布式时间轴上的事件。
有什么方法可以让 amCharts 做到这一点?