BubbleDataLabel Class
Specifies data label settings for a single bubble series point.
Namespace: DevExpress.Docs.Office
Assembly: DevExpress.Docs.Core.v26.1.dll
Declaration
Related API Members
The following members return BubbleDataLabel objects:
Remarks
For additional information about data labels, refer to the following help topic: Data Labels.
Example
The following code snippet adds two bubble series to a presentation chart and configures bubble-specific settings:

using DevExpress.Docs.Office;
using DevExpress.Docs.Presentation;
namespace PresentationApiSample;
public class Program {
public static async Task Main(string[] _) {
// Create a presentation and add a blank slide.
Presentation presentation = new Presentation();
presentation.Slides.Clear();
Slide slide = new Slide(SlideLayoutType.Blank);
presentation.Slides.Add(slide);
// Insert a chart that fills the slide.
Chart chart = new Chart();
chart.Width = presentation.SlideSize.Width;
chart.Height = presentation.SlideSize.Height;
slide.Shapes.Add(chart);
// Configure chart title.
chart.Title = new ChartTitle(new TextArea("Bubble Chart"));
chart.TextProperties = new TextProperties { FontSize = 24 };
// Create the first bubble series.
BubbleSeries series1 = new BubbleSeries();
series1.Text = "Series #1";
// Set argument data (X-axis values).
series1.Arguments = new ChartNumericData(new double[] { 1, 2, 3, 4, 5 });
// Set value data (Y-axis values).
series1.Values = new ChartNumericData(new double[] { 10, 25, 15, 30, 20 });
// Set bubble size data (determines the size of each bubble).
series1.BubbleSize = new ChartNumericData(new double[] { 5, 12, 8, 20, 10 });
// Configure data labels.
series1.DataLabels.ShowBubbleSize = true;
series1.DataLabels.LabelPosition = BubbleDataLabelPosition.Center;
chart.Series.Add(series1);
// Create the second bubble series.
BubbleSeries series2 = new BubbleSeries();
series2.Text = "Series #2";
// Set argument data (X-axis values).
series2.Arguments = new ChartNumericData(new double[] { 1, 2, 3, 4, 5 });
// Set value data (Y-axis values).
series2.Values = new ChartNumericData(new double[] { 16, 14, 10, 21, 25 });
// Set bubble size data (determines the size of each bubble).
series2.BubbleSize = new ChartNumericData(new double[] { 7, 15, 11, 18, 13 });
// Configure data labels.
series2.DataLabels.ShowBubbleSize = true;
series2.DataLabels.LabelPosition = BubbleDataLabelPosition.Center;
chart.Series.Add(series2);
// Access the bubble chart view and configure bubble settings.
BubbleChartView view = (BubbleChartView)chart.Views[0];
view.BubbleScale = 150;
view.ShowNegativeBubbles = false;
view.DisplayBubblesAs3D = true;
view.SizeRepresentation = BubbleSizeRepresentation.Width;
// Save the presentation to a file or export it.
// ...
}
}
Implements
Inheritance
Object
OfficeObject
DataLabelBase
DataLabel
BubbleDataLabel
See Also