is an option to charting functions that specifies the overall layout to use.
ChartLayout
is an option to charting functions that specifies the overall layout to use.
Details
- ChartLayout determines how visual elements are placed relative to each other.
- Common settings for ChartLayout include:
-
"Overlaid" allow the elements to overlap "Stacked" accumulate the values across elements "Percentile" accumulate and normalize the values across elements - Possible settings for ChartLayout that spread the plot elements across multiple plot panels include:
-
"Column" use a column of panels "Row" use a row of panels {"Column",k},{"Row",k} use k columns or rows {"Column",UpTo[k]},{"Row",UpTo[k]} use at most k columns or rows - Visualization functions for specialized domains may have alternative settings.
Examples
Basic Examples (5)
Use different bar chart layouts for the same data:
Table[BarChart[{{1, 2, 3}, {1, 1, 1}}, ChartLayout -> l], {l, {"Grouped", "Stepped"}}]Stacked layouts are typically useful for comparing many datasets:
Table[BarChart[RandomReal[1, {5, 5}], ChartLayout -> l], {l, {"Stacked", "Percentile"}}]Multiple layouts for pie charts:
Table[PieChart[{{1, 2, 3}, {1, 1, 1}}, ChartLayout -> l], {l, {"Grouped", "Stacked"}}]Show bar charts in rows and columns:
BarChart[{{1, 2, 1}, {2, 3, 1}}, ChartLayout -> "Row"]BarChart[{{1, 2, 1}, {2, 3, 1}}, ChartLayout -> "Column"]Use multiple rows to show multiple histograms:
Histogram[RandomVariate[#, 5000]& /@ {NormalDistribution[0, 1], NormalDistribution[0, 2], NormalDistribution[2, 1], NormalDistribution[2, 0.5]}, 25, ChartLayout -> {"Row", 2}]Related Guides
History
Text
Wolfram Research (2008), ChartLayout, Wolfram Language function, https://reference.wolfram.com/language/ref/ChartLayout.html.
CMS
Wolfram Language. 2008. "ChartLayout." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ChartLayout.html.
APA
Wolfram Language. (2008). ChartLayout. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChartLayout.html
BibTeX
@misc{reference.wolfram_2026_chartlayout, author="Wolfram Research", title="{ChartLayout}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/ChartLayout.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_chartlayout, organization={Wolfram Research}, title={ChartLayout}, year={2008}, url={https://reference.wolfram.com/language/ref/ChartLayout.html}, note=[Accessed: 13-June-2026]}