Guest User

Untitled

a guest
Jul 4th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Shading an area between y axis points in a WPF Toolkit Line Chart
  2. <Grid>
  3. <Grid.Resources>
  4. <PointCollection x:Key="sampleData1">
  5. <Point X="0" Y="20"/>
  6. <Point X="25" Y="30"/>
  7. <Point X="50" Y="25"/>
  8. </PointCollection>
  9. <PointCollection x:Key="sampleData2">
  10. <Point X="50" Y="25"/>
  11. <Point X="75" Y="40"/>
  12. <Point X="100" Y="35"/>
  13. </PointCollection>
  14. </Grid.Resources>
  15. <chartingToolkit:Chart Title="Colored Y Ranges">
  16. <chartingToolkit:AreaSeries
  17. Title="First Section"
  18. ItemsSource="{StaticResource sampleData1}"
  19. IndependentValuePath="X"
  20. DependentValuePath="Y">
  21. </chartingToolkit:AreaSeries>
  22. <chartingToolkit:AreaSeries
  23. Title="Second Section"
  24. ItemsSource="{StaticResource sampleData2}"
  25. IndependentValuePath="X"
  26. DependentValuePath="Y">
  27. </chartingToolkit:AreaSeries>
  28. </chartingToolkit:Chart>
  29. </Grid>
Advertisement
Add Comment
Please, Sign In to add comment