[英]How to create simple area series in wp8 using sparrow charts
I need to create an area series chart for my wp8 app. 我需要为wp8应用创建面积序列图。 So I decided to use sparrow toolkit for it, but unfortunately there do sent seem to be any tutorials for it on the web.
因此,我决定为此使用sparrow工具箱,但是不幸的是,网上确实有关于它的任何教程。 I am just looking on how to start with it.. so if anyone can give a basic explanation or point me to a decent tutorial that would be great.
我只是在寻找如何开始它的方法..因此,如果有人可以给出基本解释或为我提供一个不错的教程,那将是很棒的。
And if anyone knows of a better tool to achieve this please tell me about it .. 如果有人知道实现此目标的更好工具,请告诉我有关..
Thanks in advance 提前致谢
B0rn2C0de, I feel your pain creating charts for the Windows Phone. B0rn2C0de,我感到您为Windows Phone创建图表感到痛苦。
Here is a simple example of what you want. 这是您想要的简单示例。
Data = X axis value, Value = Y axis value 数据= X轴值,值= Y轴值
[XAML] [XAML]
<sparrow:SparrowChart Height="400" Width="400">
<sparrow:SparrowChart.XAxis>
<sparrow:LinearXAxis/>
</sparrow:SparrowChart.XAxis>
<sparrow:SparrowChart.YAxis>
<sparrow:LinearYAxis/>
</sparrow:SparrowChart.YAxis>
<sparrow:AreaSeries Fill="Red" Stroke="White">
<sparrow:AreaSeries.Points>
<sparrow:DoublePoint Data="0" Value="1"/>
<sparrow:DoublePoint Data="1" Value="2"/>
<sparrow:DoublePoint Data="2" Value="1"/>
<sparrow:DoublePoint Data="3" Value="4"/>
<sparrow:DoublePoint Data="4" Value="0"/>
</sparrow:AreaSeries.Points>
</sparrow:AreaSeries>
</sparrow:SparrowChart>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.