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  (118)

AspectRatio  (3)

By default, BubbleChart uses the same width and height:

Use a numerical value to specify the height to width ratio:

AspectRatioAutomatic determines the range from the values:

Axes  (3)

By default, BubbleChart uses a frame instead of axes:

Use axes instead of a frame:

Turn each axis on individually:

AxesLabel  (4)

No axes labels are drawn by default:

Place a label on the axis:

Specify axes labels:

Use units as labels:

AxesOrigin  (2)

The position of the axes is determined automatically:

Specify an explicit origin for the axes:

AxesStyle  (4)

Change the style for the axes:

Specify the style of each axis:

Use different styles for the ticks and the axes:

Use different styles for the labels and the axes:

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:

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:

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:

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:

Frame  (4)

BubbleChart uses a frame by default:

Use FrameFalse to turn off the frame:

Draw a frame on the left and right edges:

Draw a frame on the left and bottom edges:

FrameLabel  (4)

Place a label along the bottom edge of a chart:

Frame labels are placed on the bottom and left frame edges by default:

Place labels on each of the edges in the frame:

Use a customized style for both labels and frame tick labels:

FrameStyle  (2)

Specify the style of the frame:

Specify style for each frame edge:

FrameTicks  (7)

Frame ticks are placed automatically by default:

By default, the top and right edges have tick marks but no tick labels:

Use All to include tick labels on all edges:

Place tick marks at the specified positions:

Draw frame tick marks at the specified positions with specific labels:

Specify tick length as a fraction of the size of the chart:

Use different sizes in the positive and negative directions for tick marks:

Specify a style for the frame tick:

FrameTicksStyle  (3)

By default, the frame ticks and frame tick labels use the same style as the frame:

Specify a style for the frame ticks:

Use a different style for the ticks on each frame edge:

ImageSize  (7)

Use named sizes such as Tiny, Small, Medium and Large:

Specify the width of the plot:

Specify the height of the plot:

Allow the width and height to be up to a certain size:

Specify the width and height for a graphic, padding with space if necessary:

Setting AspectRatioFull will fill the available space:

Use maximum sizes for the width and height:

Use ImageSizeFull to fill the available space in an object:

Specify the image size as a fraction of the available space:

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:

Ticks  (6)

Ticks are placed automatically in each chart:

Use TicksNone to draw axes without any tick marks:

Place tick marks at the specified positions:

Draw tick marks at the specified positions with specific labels:

Specify the lengths for ticks as a fraction of graphics size:

Use different sizes in the positive and negative directions for ticks:

Specify a style for ticks:

TicksStyle  (4)

By default, the ticks and tick labels use the same styles as the axis:

Specify an overall ticks style, including the tick labels:

Specify ticks style for each of the axes:

Use a different style for the tick labels and tick marks:

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

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2023_bubblechart, organization={Wolfram Research}, title={BubbleChart}, year={2018}, url={https://reference.wolfram.com/language/ref/BubbleChart.html}, note=[Accessed: 19-March-2024 ]}