Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
swdev:dotnet:wpf:charting [2010/11/16 15:13] smayr [Using MS Chart] |
swdev:dotnet:wpf:charting [2010/11/16 15:55] (current) smayr |
||
---|---|---|---|
Line 2: | Line 2: | ||
== Using MS Chart == | == Using MS Chart == | ||
- | * Create a WPF project. | + | * Create a WPF (.NET 4.0) project. |
* Add Assembly references: | * Add Assembly references: | ||
* '' | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
- | * Place a '' | + | * Place a '' |
+ | * Place a '' | ||
Create a bar chart: | Create a bar chart: | ||
Line 19: | Line 20: | ||
< | < | ||
< | < | ||
- | < | + | < |
- | < | + | < |
</ | </ | ||
</ | </ | ||
Line 54: | Line 55: | ||
public MainWindow() | public MainWindow() | ||
{ | { | ||
- | |||
InitializeComponent(); | InitializeComponent(); | ||
- | |||
- | //chart1.da = new KeyValuePair< | ||
- | // new KeyValuePair< | ||
- | // new KeyValuePair< | ||
- | // new KeyValuePair< | ||
- | // new KeyValuePair< | ||
- | // new KeyValuePair< | ||
// Create Chart Area | // Create Chart Area | ||
Line 91: | Line 84: | ||
chart1.Series.Add(series1); | chart1.Series.Add(series1); | ||
chart1.Series.Add(series2); | chart1.Series.Add(series2); | ||
- | |||
} | } | ||
} | } | ||
Line 134: | Line 126: | ||
Source: [[http:// | Source: [[http:// | ||
+ | |||
+ | == References == | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// |