Column Chart Here we take a simple example of the total marks of the students in the class. For this follow these steps Step 1 Download the WPF Toolkit from the following link http wpf. Step 2 Now add the Reference to your project as Project menu Add Reference. Step 3 Now add the following in the lt window tag lt Window x ClassChartControlInWPF. Window. 1 xmlnshttp schemas. TitleWindow. 1 Height9. Width1. 13. 7xmlns myclr namespace System. Windows. Controls. Data. Visualization. Charting assemblySystem. Windows. Controls. Data. Visualization. Toolkit lt Scroll. Viewer Horizontal. Scroll. Bar. VisibilityAuto Vertical. Scroll. Bar. VisibilityAuto Margin0, 2. Window Step 4 Now add the following code in the grid to add the chart control lt Grid Height9. Chart Height2. 62 Horizontal. AlignmentLeft Margin3. NameColumn. Chart. TitleTotal Marks Vertical. AlignmentBottom Width3. Column. Series Dependent. Value. PathValue lt my Chart lt Grid Step 5 After that we add the code in the. Window. 1Initialize. Component show. Column. Chart privatevoid show. Column. ChartListlt Key. Value. Pairlt string, int My. Value new. Listlt Key. Value. Pairlt string, int My. Value. Addnew. Key. Value. Pairlt string, int Mahak, 3. My. Value. Addnew. Key. Value. Pairlt string, int Pihu, 2. My. Value. Addnew. Key. Value. Pairlt string, int Rahul, 2. My. Value. Addnew. Key. Value. Pairlt string, int Raj, 2. My. Value. Addnew. Key. Value. Pairlt string, int Vikas, 1. Column. Chart. 1. Data. Context My. Value Here we call the function show. Column. Chart. In which we provide the values we want to show in the chart. Here we take the Key. Value. Pair which will be used to show the value in the chart like this lt my Chart NameArea. Chart. 1 TitleTotal Marks Margin3. Horizontal. AlignmentLeft Width3. Area. Series Dependent. Value. PathValue Independent. Value. PathKey Items. SourceBinding Is. Selection. EnabledTrue lt my Chart The Output Will Be Area Chart. Step 1 Now we create the Area Chart. For this first we add the following code in the. Chart NameArea. Chart. TitleTotal Marks Margin3. Horizontal. AlignmentLeft Width3. Area. Series Dependent. Value. PathValue Independent. Value. PathKey Items. SourceBinding Is. Selection. EnabledTrue lt my Chart Step 2 After that, we add the following code in the show. Column. Chart function in the. Column. ChartListlt Key. Value. Pairlt string, int My. Value new. Listlt Key. Value. Pairlt string, int My. Value. Addnew. Key. Value. Pairlt string, int Mahak, 3. My. Value. Addnew. Key. Value. Pairlt string, int Pihu, 2. My. Value. Addnew. Key. Value. Pairlt string, int Rahul, 2. My. Value. Addnew. Key. Value. Pairlt string, int Raj, 2. My. Value. Addnew. Key. Value. Pairlt string, int Vikas, 1. New York Drivers License Name Formatting here. Column. Chart. 1. Data. Context My. Value Area. Chart. Data. Context My. Value The Output Will Be Line Chart. Step 1 Now we create the Line Chart. For this first we add the following code in the. Chart NameLine. Chart. TitleTotal Marks Vertical. AlignmentTop Margin3. Height2. 54 lt my Line. Series Dependent. Value. PathValue Independent. Value. PathKey Items. SourceBinding Is. Selection. EnabledTrue Step 2 After that, we add the following code in the show. Column. Chart function in the. Column. ChartListlt Key. Value. Pairlt string, int My. Value new. Listlt Key. Value. Pairlt string, int My. Value. Addnew. Key. Value. Pairlt string, int Mahak, 3. My. Value. Addnew. Key. Value. Pairlt string, int Pihu, 2. My. Value. Addnew. Key. Value. Pairlt string, int Rahul, 2. My. Value. Addnew. Key. Value. Pairlt string, int Raj, 2. My. Value. Addnew. Key. Value. Pairlt string, int Vikas, 1. Column. Chart. 1. Data. Context My. Value Area. Chart. Data. Context My. Value Line. Chart. Data. Context My. Value The Output Will Be Pie Chart. Step 1 Now we create the Pie Chart. For this first we add the following code in the. Chart NamePie. Chart. TitleTotal Marks Vertical. AlignmentTop Margin4. Height2. 62 lt my Pie. Series Dependent. Value. PathValue Independent. Value. PathKey Items. SourceBinding Is. Selection. EnabledTrue lt my Chart Step 2 After that, we add the following code in the show. Column. Chart function in the. Column. ChartListlt Key. Value. Pairlt string, int My. Value new. Listlt Key. Value. Pairlt string, int My. Value. Addnew. Key. Value. Pairlt string, int Mahak, 3. My. Value. Addnew. Key. Value. Pairlt string, int Pihu, 2. My. Value. Addnew. Key. Value. Pairlt string, int Rahul, 2. My. Value. Addnew. Key. Value. Pairlt string, int Raj, 2. My. Value. Addnew. Key. Value. Pairlt string, int Vikas, 1. Column. Chart. 1. Data. Context My. Value Area. Chart. Data. Context My. Value Line. Chart. Data. Context My. Value Pie. Chart. Data. Context My. Value The Output Will be Bar Chart. Step 1 Now we create the Bar Chart. For this first we add the following code in the. Chart NameBar. Chart. TitleTotal Marks Margin5. Bar. Series Dependent. Value. PathValue Independent. Value. PathKey Items. SourceBinding Is. Selection. EnabledTrue lt my Chart Step 2 After that, we add the following code in the show. Column. Chart function in the. Column. ChartListlt Key. Value. Pairlt string, int My. Value new. Listlt Key. Value. Pairlt string, int My. Value. Addnew. Key. Value. Pairlt string, int Mahak, 3. My. Value. Addnew. Key. Value. Pairlt string, int Pihu, 2. My. Value. Addnew. Key. Value. Pairlt string, int Rahul, 2. My. Value. Addnew. Key. Value. Pairlt string, int Raj, 2. My. Value. Addnew. Key. Value. Pairlt string, int Vikas, 1. Data. Context My. Value Pie. Chart. Data. Context My. Value Bar. Chart. Data. Context My. Value private void show. Column. ChartListlt Key. Value. Pairlt string, int My. Value new Listlt Key. Value. Pairlt string, int My. Value. Addnew Key. Value. Pairlt string, int Mahak, 3. My. Value. Addnew Key. Value. Pairlt string, int Pihu, 2. My. Value. Addnew Key. Value. Pairlt string, int Rahul, 2. My. Value. Addnew Key. Value. Pairlt string, int Raj, 2. My. Value. Addnew Key. Value. Pairlt string, int Vikas, 1. Column. Chart. 1. Data. Context My. Value Area. Chart. Data. Context My. Value Line. Chart. Data. Context My. Value Pie. Chart. Data. Context My. Value Bar. Chart. Data. Context My. Value The Output Will Be.