Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 1.02 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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>