How to create simple area series in wp8 using sparrow charts

前端 未结 1 1374
隐瞒了意图╮
隐瞒了意图╮ 2021-01-23 11:45

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 a

相关标签:
1条回答
  • 2021-01-23 11:52

    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>
    

    enter image description here

    0 讨论(0)
提交回复
热议问题