# WPF Bubble Chart

## Content



The Bubble Chart, which is basically a type of the Scatter Chart, is used for graphical representation of multi-dimensional data. It displays an additional data value at each point by changing its size. The chart type represents data points in the form of bubbles (data markers) whose X and Y coordinates are determined by two data values and whose size indicates the value of a third variable.

To create the WPF Bubble Chart, you need to set the **ChartType** property to Bubble either in the Properties window (at design-time) or code behind (at run-time). You can also set the same in XAML.

## WPF Bubble Chart

![WPF Bubble Chart](https://cdn.mescius.io/document-site-files/images/8ba28e07-1633-4a6a-9114-13b9f1f04eed/images/imagesext/wpfflexchartbubble.png)

Below is the implementation in code:

**xml**

```xml
<c1:C1FlexChart x:Name="flexChart" 
                BindingX="X" 
                ItemsSource="{Binding DataContext.Data}" 
                ChartType="Bubble">
    <c1:C1FlexChart.Series>
        <c1:Series SeriesName="Bubble" 
                   Binding="Y,Size"/>
    </c1:C1FlexChart.Series>
</c1:C1FlexChart>
```

### Code

```csharp
flexChart.ChartType = ChartType.Bubble;
```