BarCharts`
BarCharts`

PercentileBarChart

As of Version 7.0, PercentileBarChart has been superseded by BarChart.

PercentileBarChart[{list1,list2,}]

generates a stacked bar chart of the data in the lists. The data for each group of bars is scaled so that the sum of the absolute values in a group of bars is 1.

Details and Options

  • To use PercentileBarChart, you first need to load the Bar Charts Package using Needs["BarCharts`"].
  • PercentileBarChart has the same options as Graphics with the following additions:
  • BarStyleAutomaticstyle for the bars
    BarSpacingAutomaticratio of bar width to space bars in a group
    BarGroupSpacingAutomaticspacing between groups of bars
    BarLabelsAutomaticlabels at tick marks for each bar (or group)
    BarValuesFalsewhether to show the length of each bar
    BarEdgesTruewhether edges are drawn around each bar
    BarEdgeStyleOpacity[0.5]style for the bar edges
    BarOrientationVerticaldetermines horizontal or vertical orientation
  • Each listi is a list of numbers or numeric values. For example: {1,7,-4,2,3}.
  • The listi need not have the same length.
  • The heights of all the groups of bars in an PercentileBarChart are the same.

Examples

Basic Examples  (1)

Chart sets of values:

The total height is always the same, but negative values will display below the axis:

The sets need not have the same length:

Wolfram Research (2008), PercentileBarChart, Wolfram Language function, https://reference.wolfram.com/language/BarCharts/ref/PercentileBarChart.html.

Text

Wolfram Research (2008), PercentileBarChart, Wolfram Language function, https://reference.wolfram.com/language/BarCharts/ref/PercentileBarChart.html.

CMS

Wolfram Language. 2008. "PercentileBarChart." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/BarCharts/ref/PercentileBarChart.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_percentilebarchart, author="Wolfram Research", title="{PercentileBarChart}", year="2008", howpublished="\url{https://reference.wolfram.com/language/BarCharts/ref/PercentileBarChart.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_percentilebarchart, organization={Wolfram Research}, title={PercentileBarChart}, year={2008}, url={https://reference.wolfram.com/language/BarCharts/ref/PercentileBarChart.html}, note=[Accessed: 21-November-2024 ]}