Aspose::Words::Drawing::Charts::IChartDataPoint::get_Bubble3D method

IChartDataPoint::get_Bubble3D method

Specifies whether the bubbles in Bubble chart should have a 3-D effect applied to them.

virtual bool Aspose::Words::Drawing::Charts::IChartDataPoint::get_Bubble3D()=0

Examples

Shows how to use 3D effects with bubble charts.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);

SharedPtr<Shape> shape = builder->InsertChart(ChartType::Bubble3D, 500, 350);
SharedPtr<Chart> chart = shape->get_Chart();

ASSERT_EQ(1, chart->get_Series()->get_Count());
ASSERT_EQ(u"Y-Values", chart->get_Series()->idx_get(0)->get_Name());
ASSERT_TRUE(chart->get_Series()->idx_get(0)->get_Bubble3D());

// Apply a data label to each bubble that displays its diameter.
for (int i = 0; i < 3; i++)
{
    chart->get_Series()->idx_get(0)->set_HasDataLabels(true);
    chart->get_Series()->idx_get(0)->get_DataLabels()->idx_get(i)->set_ShowBubbleSize(true);
}

doc->Save(ArtifactsDir + u"Charts.Bubble3D.docx");

See Also