Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# How to create 3D Bar Chart in WPF?

This article explains about how to create a 3D Bar Chart in WPF.
This article explains about how to create a [3D Bar Chart](https://www.syncfusion.com/wpf-controls/charts/wpf-3d-bar-chart) in WPF.

You can create 3D bar chart in WPF by populating the items into ItemsSource of BarSeries3D series . In the following example, you will look at a grocery store. The chart displays the revenue generated from the production department.

Populated items are the sales details which denotes the products and their revenue

**Model**

```
public class Sales
Expand All @@ -15,6 +17,8 @@ public class Sales
}
```

**ViewModel**

```
public ViewModel()
{
Expand All @@ -28,6 +32,8 @@ public ViewModel()
public ObservableCollection<Sales> GrowthDetails { get; set; }
```

**XAML**

```
<Syncfusion:SfChart3D x:Name="Chart" Header="3D Bar Chart">
<Syncfusion:SfChart3D.DataContext>
Expand All @@ -53,4 +59,10 @@ public ObservableCollection<Sales> GrowthDetails { get; set; }

![3D Bar chart in WPF](https://user-images.githubusercontent.com/53489303/200646561-26af5f1a-f427-4117-920d-75f6e5ddef2c.png)

KB article - [How to create 3D Bar Chart in WPF](https://www.syncfusion.com/kb/11464/how-to-create-3d-bar-chart-in-wpf)
## Troubleshooting

#### Path too long exception

If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project.

For more details, refer to the KB on [How to create 3D Bar Chart in WPF](https://www.syncfusion.com/kb/11464/how-to-create-3d-bar-chart-in-wpf)
25 changes: 0 additions & 25 deletions Sample-WPF.sln

This file was deleted.

6 changes: 0 additions & 6 deletions Sample-WPF/App.config

This file was deleted.

32 changes: 0 additions & 32 deletions Sample-WPF/MainWindow.xaml.cs

This file was deleted.

15 changes: 0 additions & 15 deletions Sample-WPF/Model.cs

This file was deleted.

55 changes: 0 additions & 55 deletions Sample-WPF/Properties/AssemblyInfo.cs

This file was deleted.

63 changes: 0 additions & 63 deletions Sample-WPF/Properties/Resources.Designer.cs

This file was deleted.

117 changes: 0 additions & 117 deletions Sample-WPF/Properties/Resources.resx

This file was deleted.

26 changes: 0 additions & 26 deletions Sample-WPF/Properties/Settings.Designer.cs

This file was deleted.

Loading