BarOrigin
Examples
open all close allBasic Examples (2)
Table[BarChart[{1, 2, 3, 4, 5}, BarOrigin -> o, PlotLabel -> o], {o, {Bottom, Top, Left, Right}}]Change the bar origin in three dimensions:
Table[BarChart3D[{1, 2, 3, 4, 5}, ImageSize -> Small, BarOrigin -> o, PlotLabel -> o], {o, {Bottom, Top, Left, Right}}]Applications (2)
countries = CountryData["G8"];
{dataLeft, dataRight} = Table[1*^-9 CountryData[#, s]& /@ countries, {s, {"ExportValue", "ImportValue"}}];labeler[v_, {r_, 2}, __] := Placed[countries[[r]], {{0., 0.5}, {0.5, 0.5}}]Use positive and negative values to encode export and import:
BarChart[Transpose@{dataLeft, -dataRight}, ChartLayout -> "Stacked", BarOrigin -> Left, LabelingFunction -> labeler, FrameTicks -> {Table[{k, Abs@k}, {k, -2000, 2000, 500}], None}, Frame -> Bottom, ChartLegends -> {"Exports", "Imports"}]Create a bar chart of the frequency of characters in the Declaration of Independence:
BarChart[Labeled[#2, #1, Before]&@@@Take[Reverse@SortBy[Tally@Flatten@Characters@ExampleData[{"Text", "DeclarationOfIndependence"}, "Words"], Last], 20], BarSpacing -> 0, BarOrigin -> Left]Related Guides
History
Text
Wolfram Research (2008), BarOrigin, Wolfram Language function, https://reference.wolfram.com/language/ref/BarOrigin.html.
CMS
Wolfram Language. 2008. "BarOrigin." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BarOrigin.html.
APA
Wolfram Language. (2008). BarOrigin. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BarOrigin.html
BibTeX
@misc{reference.wolfram_2026_barorigin, author="Wolfram Research", title="{BarOrigin}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/BarOrigin.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_barorigin, organization={Wolfram Research}, title={BarOrigin}, year={2008}, url={https://reference.wolfram.com/language/ref/BarOrigin.html}, note=[Accessed: 13-June-2026]}