ComponentOne FlexChart for WPF
FlexChart / Understanding FlexChart / FlexChart Types / Bubble
In This Topic
    Bubble
    In This Topic

    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 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.

    Bubble Chart

     

     

    Below is the implementation in code:

    <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>
    
    C#
    Copy Code
    flexChart.ChartType = ChartType.Bubble;