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

查看:12
本文介绍了如何使用麻雀图在 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天全站免登陆