How to create simple area series in wp8 using sparrow charts

自闭症网瘾萝莉.ら 提交于 2019-12-20 04:52:34

问题


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

Thanks in advance


回答1:


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

Here is a simple example of what you want.

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>



来源:https://stackoverflow.com/questions/24962187/how-to-create-simple-area-series-in-wp8-using-sparrow-charts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!