DistributionChart

DistributionChart[{data1,data2,}]

makes a distribution chart with a distribution symbol for each datai.

DistributionChart[{,wi[datai,],,wj[dataj,],}]

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

DistributionChart[{{data1,data2,},}]

makes a distribution chart from multiple groups of datasets {data1,data2,}.

Details and Options

Examples

open allclose all

Basic Examples  (4)

Generate a distribution chart of a list of datasets:

Multiple list of datasets:

Use categorical labels:

Categorical legends:

Style the shapes:

Use procedural shapes:

Histogram bars:

Scope  (34)

Data and Layouts  (17)

Single data vector:

Multiple data vectors:

Data vectors in a dataset are grouped together:

Datasets do not need to have the same number of data vectors:

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

Nonreal entries in data vectors are omitted:

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:

Use WeightedData to add weights to data:

Use EventData to add censoring and truncation information:

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

Inner wrappers take precedence over outer wrappers:

Override the default tooltips:

Use PopupWindow to provide additional drilldown information:

Use the other charting functions in a PopupWindow to provide more information:

Button can be used to trigger any action:

Styling and Appearance  (9)

Use an explicit list of styles for the shapes:

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 built-in programmatically generated shapes:

For detailed settings, use Palettes ChartElementSchemes:

Change the origin of shapes:

Adjust the spacing between individuals and groups of shapes:

Use a theme with dark background and high-contrast styles:

Use a theme with bright colors and grid lines:

Labeling and Legending  (8)

Use Labeled to add a label to a shape:

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:

Provide value labels for shapes by using LabelingFunction:

Use Placed to control placement and formatting:

Add categorical legend entries for the columns of data:

For a row of data:

Use Legended to add additional legend entries:

Use Placed to affect the positioning of legends:

Options  (42)

AspectRatio  (3)

By default, DistributionChart uses a fixed height to width ratio for the plot:

Make the height the same as the width with AspectRatio1:

AspectRatioFull adjusts the height and width to tightly fit inside other constructs:

BarOrigin  (1)

Change bar origin:

BarSpacing  (4)

DistributionChart automatically selects the spacing between bars:

With groups of data:

Use symbolic spacing:

With groups of data:

Use explicit spacing between bars:

With groups of data:

Use no bar spacing:

Within groups of data:

ChartBaseStyle  (3)

Use ChartBaseStyle to style box-and-whisker plots:

ChartBaseStyle combines with ChartStyle:

ChartStyle may override settings for ChartBaseStyle:

ChartElementFunction  (5)

Get a list of built-in settings for ChartElementFunction:

For detailed settings, use Palettes ChartElementSchemes:

Shade the default violin bars according to density:

Use bands to mark decile boundaries:

Write a custom ChartElementFunction:

ChartLabels  (8)

By default, labels are placed under the frame:

Use Placed to control label placement:

Symbolic positions outside the bar:

Use group labels to label groups:

Coordinate-based placement relative to a bar:

Place all labels at the upper-right corner and vary the coordinates within the label:

Use the third argument to Placed to control formatting:

Place multiple labels:

ChartLayout  (2)

ChartLayout is grouped by default:

Use overlapped layout:

ChartLegends  (1)

Generate a legend based on chart style:

Use Placed to change the legend location:

ChartStyle  (4)

Use ChartStyle to style the 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 datasets in a group:

Style groups of datasets:

LabelingFunction  (2)

By default, bars have tooltips with a summary table of the data:

Define a labeling function and place it in the tooltip:

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:

Method  (1)

Use bar widths proportional to the square root of the data sizes:

Put bars on fixed positions with varying bar spacing:

Use constant width bars:

PerformanceGoal  (3)

Generate a distribution chart with interactive highlighting:

Emphasize performance by disabling interactive behaviors:

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

PlotTheme  (1)

Use a theme with bright colors and grid lines:

Add a theme with frame and vertical lines:

Change the grid lines style:

Applications  (2)

Compare the distribution of salaries for several departments at a university:

Compare different time slices for a random process:

Properties & Relations  (6)

Use BoxWhiskerChart to show the distribution of data:

BoxWhiskerChart is a special case of DistributionChart:

Use Histogram and SmoothHistogram to visualize lists of data vectors:

The default shapes used by DistributionChart are effectively generated using SmoothHistogram:

Use QuantilePlot and ProbabilityPlot to compare data to distributions:

Use Histogram3D and SmoothHistogram3D to visualize 2D data:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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