Files to look at:
- Window1.xaml (VB: Window1.xaml)
- Window1.xaml.cs (VB: Window1.xaml.vb)
The following example demonstrates how to create a 2D Stacked Bar chart.
For this, it is necessary to assign the ChartControl.Diagram property to XYDiagram2D, and then add two BarStackedSeries2D with points to the diagram's Series collection.
Also, this example shows how to add a legend (showing series names) to a chart.