BarChart3D

BarChart3D[{y1,y2,}]

makes a 3D bar chart with bar lengths y1, y2, .

BarChart3D[{,wi[yi,],,wj[yj,],}]

makes a 3D bar chart with bar features defined by the symbolic wrappers wk.

BarChart3D[{data1,data2,}]

makes a 3D bar chart from multiple datasets datai.

Details and Options

Examples

open allclose all

Basic Examples  (3)

Generate a 3D bar chart for a list of heights:

Multiple datasets:

Set the style for bars:

Pictorial bars:

Procedural bars:

Scope  (37)

Data and Layouts  (13)

Items in a dataset are grouped together:

Datasets do not need to have the same number of items:

Nonreal data is taken to be missing and typically yields a gap in the bar chart:

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 the heights of the bars:

Use the keys as labels:

Use the keys as legends:

Associations can be nested:

The weights in WeightedData are ignored:

The censoring and truncation information in EventData is ignored:

Use different layouts to display multiple datasets:

Stacked layouts are more compact in the horizontal direction:

Control the origin of bars:

Adjust the spacing between bars and groups of bars:

Wrappers  (5)

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

Use an explicit list of styles for the bars:

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 bars:

Use built-in programmatically generated bars:

For detailed settings use Palettes ChartElementSchemes:

Turn off canvas:

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

Use a monochrome theme:

Labeling and Legending  (9)

Use Labeled to add a label to a bar:

Use symbolic positions for label placement:

Provide categorical labels for the columns of data:

For rows of data:

For both:

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

Use the third argument of Placed to control formatting of labels:

Provide value labels for bars by using LabelingFunction:

Use Placed to control placement and formatting:

Add categorical legend entries for the columns of data:

For rows of data:

Use Legended to add additional legend entries:

Use Placed to affect the positioning of legends:

Options  (90)

Axes  (3)

By default, axes are drawn for BarChart3D:

Use AxesFalse to turn off axes:

Turn each axis on individually:

AxesLabel  (4)

No axis labels are drawn by default:

Place a label on the axis:

Specify axis labels:

Use units as labels:

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:

BarOrigin  (1)

Change the bar origin:

BarSpacing  (6)

Use automatically determined spacing between bars:

Use no spacing:

Use symbolic presets:

Use explicit spacing between bars:

Use explicit spacing between bars and groups of bars:

Position bars within a group, 0.5 bar width apart, and with no space between groups:

ChartBaseStyle  (5)

Use ChartBaseStyle to style bars:

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

Get a list of built-in settings for ChartElementFunction:

For detailed settings, use Palettes ChartElementSchemes:

This ChartElementFunction is appropriate to show the global scale:

Write a custom ChartElementFunction:

Write a custom ChartElementFunction using ChartElementDataFunction:

A custom chart element function that draws a drop plane:

Setting the metadata to True turns on the drop plane:

ChartElements  (7)

Create a pictorial chart based on any Graphics3D object:

Use a different graphic for each column of data:

Use a different graphic for each row of data:

Graphics are used cyclically:

Styles are inherited from styles set through ChartStyle etc.:

Override individual styles by using Style:

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

The pictorial graphic is rotated to always start at the setting used for BarOrigin:

ChartLabels  (9)

By default, labels are placed in the axis:

Labeled wrappers in data will place additional labels:

Use Placed to control label placement:

Symbolic positions outside the bar:

Coordinate-based placement relative to a bar:

Coordinate-based placement relative to a bar at a scaled position in the label:

Use the third argument to Placed to control formatting:

By default, labels are associated with columns of data:

Associate labels with rows or datasets:

Label both rows and columns:

Place multiple labels:

ChartLayout  (4)

BarChart uses a grouped layout by default:

Use stepped bars:

Use stacked bars:

The stacked layout can effectively display many datasets:

Use a percentile stacked layout:

ChartLegends  (7)

Generate a legend based on chart style:

Use Legended to add additional legend entries:

Use Legended to specify a few 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  (8)

Use ChartStyle to set the style for all bars:

Give a list of styles:

Use the "Gradients" color scheme from ColorData:

Use the "Indexed" color scheme 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 may override settings for ChartStyle:

ColorFunction may override settings for ChartStyle:

Use ColorFunction to combine different style effects:

ChartElements with explicit style settings may override settings for ChartStyle:

ColorFunction  (3)

Color by bar height:

Use the "Gradients" color strings from ColorData:

Use ColorFunctionScaling->False to get unscaled height values:

ColorFunction may override settings for ChartStyle:

Use ColorFunction to combine different style effects:

ColorFunctionScaling  (2)

By default, scaled height values are used:

Use ColorFunctionScaling->False to get unscaled height values:

LabelingFunction  (8)

Use automatic labeling by values through Tooltip and StatusArea:

Do no automatic labeling:

Use symbolic positions to control label placement:

Symbolic positions outside the bar:

Coordinate-based placement relative to a bar:

Control the formatting of labels:

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

Place row, column, and value labels in a Tooltip:

PerformanceGoal  (3)

Generate a bar 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 and dark background in a high contrast color scheme:

Change the chart style:

Ticks  (6)

Ticks are placed automatically in each plot:

Use TicksNone to not draw any tick marks:

Place tick marks at specific positions:

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

Specify tick marks with scaled lengths:

Customize each tick with position, length, labeling and styling:

TicksStyle  (2)

Specify overall ticks style, including the tick labels:

Specify tick style for each of the axes:

Applications  (5)

Click the bars to hear the name of the country and its GDP per capita:

Create a 3D bar chart of the mean monthly temperature of Chicago between 2001 and 2007:

Compare molecular mass of commonly used chemicals:

Create a 3D periodic table of elements, where the bar height represents the atomic weight:

Get price data for a portfolio of companies:

Create a labeling function:

Mouse over the bars to get price information:

Properties & Relations  (5)

Use BarChart to get a 2D rendering of bar charts:

BarChart3D is a special case of RectangleChart3D:

Use PieChart and PieChart3D to visualize a list of data as sectors:

Use ListPlot and ListLinePlot to produce line graphs:

Use Histogram to automatically compute binning and draw histograms:

Neat Examples  (3)

Pictorial bars:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2023_barchart3d, organization={Wolfram Research}, title={BarChart3D}, year={2014}, url={https://reference.wolfram.com/language/ref/BarChart3D.html}, note=[Accessed: 28-March-2024 ]}