如何在wp7中使用快速图表?
我正在尝试使用 AmCharts QuickCharts for WP7 但失败得很惨。
我刚刚用 xaml 给出了这样的图表:
<controls:PivotItem Header="24 hours">
<amq:LineGraph Name="_24HoursLineGraph"></amq:LineGraph>
</controls:PivotItem>
我不知道如何转换我的数据,以便折线图可以解释它并呈现它。我还没有在任何地方找到这方面的可靠教程,因此如果您知道在哪里可以找到它,请为我指出方向。我当然更愿意在这里看到关于如何使用折线图控件的很好的解释:)
有什么想法吗?
I'm trying to use AmCharts QuickCharts for WP7 and am failing miserably.
I've just put out a chart like this with xaml:
<controls:PivotItem Header="24 hours">
<amq:LineGraph Name="_24HoursLineGraph"></amq:LineGraph>
</controls:PivotItem>
What I don't know is how to transform my data so that the linegraph can interpret it and render it. I haven't found a solid tutorial on this anywhere so if you know where to find it, please point me in the direction. I'd of course rather see a nice explanation here of how to use the linechart control :)
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一种解决方法,尽管我不喜欢它。我将提出另一个问题,即如何灵活地使用这个控件。
为此,您需要创建一个可观察集合并将整个枢轴控件的数据上下文绑定到该可观察集合。 CategoryValueMemberPath 将查看对象的一个轴,而折线图的 ValueMemberPath 将查看对象的另一维度。
请参阅此问题了解更多详细信息
I found one way to solve it although I don't like it. I'll be raising another question as to how to flexibly use this control.
For this to work you need to create an observable collection and bind the entire pivot control's datacontext to that observable collection. CategoryValueMemberPath will look at one axis of the object and ValueMemberPath of the linegraph will look at another dimension of the object.
See this question for more details