如何创建使用麻雀排行榜WP8简单的区域系列 [英] How to create simple area series in wp8 using sparrow charts

查看:122
本文介绍了如何创建使用麻雀排行榜WP8简单的区域系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个区域系列图表我的WP8应用程序。所以我决定用麻雀工具包,但遗憾的做派似乎在网络上的任何教程。我只是在寻找如何开始使用它..所以如果有人能给出一个基本的解释或指向我一个体面的教程,将是巨大的。

I need to create an area series chart for my wp8 app. So I decided to use sparrow toolkit for it, but unfortunately there do sent seem to be any tutorials for it on the web. 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 ..

谢谢提前

推荐答案

B0rn2C0de,我觉得你的痛苦创建为Windows Phone图表。

B0rn2C0de, I feel your pain creating charts for the Windows Phone.

下面是你想要的一个简单的例子。

Here is a simple example of what you want.

数据= X轴值,值= Y轴值

Data = X axis value, Value = Y axis value

[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>



在这里输入的形象描述

这篇关于如何创建使用麻雀排行榜WP8简单的区域系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆