BubbleChart

BubbleChart[{{x1,y1,z1},{x2,y2,z2},}]

makes a bubble chart with bubbles at positions {xi,yi} with sizes zi.

BubbleChart[{,wi[{xi,yi,zi},],,wj[{xj,yj,zj},],}]

makes a bubble chart with bubble features defined by the symbolic wrappers wk.

BubbleChart[{data1,data2,}]

makes a bubble chart from multiple datasets datai.

Details and Options

Examples

open allclose all

Basic Examples  (3)

Create a bubble chart for a list of triples:

Multiple datasets:

Set the style for bubbles:

Pictorial bubbles:

Procedural bubbles:

Scope  (31)

Data and Wrappers  (14)

Items in a dataset are colored the same:

Nonreal data is taken to be missing:

The data may include units:

Specify the units to use:

The time stamps in TimeSeries, EventSeries, and TemporalData are ignored:

The values in associations are taken as bubble values:

Use the keys as labels:

Use the keys as legends:

Associations can be nested down to the point level:

Or up to the group level:

The weights in WeightedData are ignored:

Use wrappers on individual data, datasets, or collections of datasets:

Wrappers can be nested:

Override the default tooltips:

Use any object in the tooltip:

Use PopupWindow to provide additional drilldown information:

Button can be used to trigger any action:

Styling and Appearance  (8)

Use an explicit list of styles for the bubbles:

Use any gradient or indexed color schemes from ColorData:

Use color schemes designed for charting:

ChartBaseStyle can be used to set an initial style for all chart elements:

Style can be used to override styles:

Use any graphic for pictorial bubbles:

Use built-in programmatically generated bubbles:

For detailed settings, use Palettes ChartElementSchemes:

Use a theme with simple ticks and grid lines in a bright color scheme:

Use a theme with a high contrast color scheme and 3D bubbles:

Labeling and Legending  (9)

Use Labeled to add a label to a bubble:

Use symbolic positions for label placement:

Use Placed to control the positioning of labels, using the same positions as for Labeled:

Provide value labels for bubbles by using LabelingFunction:

Specify the maximum size of labels:

Use the full label:

For dense sets of points, some labels may be turned into tooltips by default:

Increasing the size of the plot will show more labels:

Use legend entries for different datasets:

Use Legended to add additional legend entries:

Use Placed to affect the positioning of legends:

Options  (65)

BubbleScale  (2)

By default, the area of a bubble is proportional to the z value:

Compare area scale to diameter scale:

BubbleSizes  (1)

Change the size range of the bubbles:

ChartBaseStyle  (5)

Use ChartBaseStyle to style all bubbles:

ChartBaseStyle combines with ChartStyle:

ChartStyle may override settings for ChartBaseStyle:

ChartBaseStyle combines with Style:

Style may override settings for ChartBaseStyle:

ChartBaseStyle combines with ColorFunction:

ColorFunction may override settings for ChartBaseStyle:

ChartElements  (5)

Create a pictorial chart based on any Graphics object:

Graphics3D:

Image:

Use a different graphic for each dataset:

Graphics are used cyclically:

Styles are inherited from styles set through ChartStyle etc.:

Explicit styles set in the graphic will override other style settings:

Create true 3D shaded bubbles:

ChartElementFunction  (5)

Get a list of built-in settings for ChartElementFunction:

For more settings, use Palettes ChartElementSchemes:

Write a custom ChartElementFunction:

Use metadata passed on from the input, in this case charting the data:

The built-in element function may have options; use Palettes ChartElementSchemes to set them:

ChartLabels  (7)

By default, labels are placed in the bubbles:

Labeled wrappers in data will place additional labels:

Use Placed to control label placement:

Coordinate-based placement relative to a bubble:

Place all labels at the center of each bubble and vary the coordinates within the label:

Use the third argument to Placed to control formatting:

Use a hyperlink label:

Use Callout to connect the labels to the bubbles:

Place multiple labels:

ChartLegends  (7)

Generate a legend based on chart style:

Use Legended to add additional legend entries:

Use Legended to specify individual legend entries:

Generate a legend for datasets:

Unused legend labels are dropped:

Legends can be applied to several dimensions:

Use Placed to control the placement of legends:

ChartStyle  (14)

Use ChartStyle to set the style:

Give a list of styles:

Use "Gradient" colors from ColorData:

Use "Indexed" colors from ColorData:

Styles are used cyclically:

Style each column of data:

Style each row of data:

Style both rows and columns of data:

With both row and column styles, the last style may override earlier ones:

Style overrides settings for ChartStyle:

Style may combine with ChartStyle:

ColorFunction overrides settings for ChartStyle:

ColorFunction may combine with ChartStyle:

ChartElements may override settings for ChartStyle:

ColorFunction  (3)

Color by coordinate value:

Use ColorFunctionScaling->False to get unscaled height values:

ColorFunction overrides styles in ChartStyle:

Use ColorFunction to combine different style effects:

ColorFunctionScaling  (2)

By default, scaled values are used:

Use ColorFunctionScaling->False to get unscaled height values:

LabelingFunction  (7)

Use automatic labeling by values through Tooltip and StatusArea:

Do no labeling:

Use Placed to control label placement:

Coordinate-based placement relative to a given bubble:

Use Callout to place labels automatically:

Use symbolic positions to place Callout labels:

Control the formatting of labels:

Use the given chart labels as arguments to the labeling function:

LabelingSize  (4)

Textual labels are shown at their actual sizes:

Image labels are automatically resized:

Specify a maximum size for textual labels:

Specify a maximum size for image labels:

Show image labels at their natural sizes:

PerformanceGoal  (1)

Generate a bubble chart with interactive highlighting:

Emphasize performance by disabling interactive behaviors:

Typically, less memory is required for non-interactive charts:

PlotTheme  (2)

Use a theme with simple ticks in a bold color scheme:

Change the chart style:

Applications  (5)

Display GDP per capita, poverty fraction, and population for countries in Africa:

Define a labeling function for more complex tooltips:

Mouse over the bubbles to view a country's data:

Display oil data for the G15 countries using PieChart for bubbles to indicate import and export:

Click the bubbles to hear the name of the country, its GDP per capita, and its population:

Get population, weather, and coordinate data of large Japanese cities:

Get a map of Japan:

Mouse over the bubbles to get city and temperature information:

Represent clusters of elements based on three properties:

Cluster the elements into groups based on the value of their properties:

Mouse over the bubbles to get element information:

Properties & Relations  (2)

Use BubbleChart3D to get a 3D rendering of bubble charts:

Use SectorChart3D and RectangleChart3D as alternative visualizations:

Neat Examples  (2)

Chartwork:

Wolfram Research (2008), BubbleChart, Wolfram Language function, https://reference.wolfram.com/language/ref/BubbleChart.html (updated 2018).

Text

Wolfram Research (2008), BubbleChart, Wolfram Language function, https://reference.wolfram.com/language/ref/BubbleChart.html (updated 2018).

BibTeX

@misc{reference.wolfram_2020_bubblechart, author="Wolfram Research", title="{BubbleChart}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/BubbleChart.html}", note=[Accessed: 02-December-2020 ]}

BibLaTeX

@online{reference.wolfram_2020_bubblechart, organization={Wolfram Research}, title={BubbleChart}, year={2018}, url={https://reference.wolfram.com/language/ref/BubbleChart.html}, note=[Accessed: 02-December-2020 ]}

CMS

Wolfram Language. 2008. "BubbleChart." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2018. https://reference.wolfram.com/language/ref/BubbleChart.html.

APA

Wolfram Language. (2008). BubbleChart. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BubbleChart.html