ChartElementFunction
Chart Elements Palette »is an option for charting functions such as BarChart that gives a function to use to generate the primitives for rendering each chart element.
Details
- ChartElementFunction->f specifies that each chart element should be rendered with the graphics primitives given by f[region,values,metadata].
- ChartElementFunction->"name" uses a named function for generating chart elements.
- Lists of built-in named functions for specific charting functions can be obtained from ChartElementData["BarChart"], etc.
- In ChartElementFunction->f, the region argument to f is given as follows:
- In ChartElementFunction->f, the values argument to f is given as follows:
-
BubbleChart3D {x,y,z,w}
- In the case of Histogram and Histogram3D the values given are those in the sublist of data associated with each bin.
- With input data of form {d1->m1,d2->m2,…} the metadata associated with di is {mi}. With input data of the form {{d1->m1,d2->m2,…},…}->m0 the metadata associated with di is {m0,mi}.
Examples
Basic Examples (2)
Use a built-in ChartElementFunction :
Construct a custom rendering function:
See Also
ChartElements ColorFunction ChartStyle ChartBaseStyle
Function Repository: OverflowBarChart
Related Workflows
- Customize Charts ▪
- Make Publication-Quality Graphics
History
Text
Wolfram Research (2008), ChartElementFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/ChartElementFunction.html.
CMS
Wolfram Language. 2008. "ChartElementFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ChartElementFunction.html.
APA
Wolfram Language. (2008). ChartElementFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChartElementFunction.html
BibTeX
@misc{reference.wolfram_2025_chartelementfunction, author="Wolfram Research", title="{ChartElementFunction}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/ChartElementFunction.html}", note=[Accessed: 12-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_chartelementfunction, organization={Wolfram Research}, title={ChartElementFunction}, year={2008}, url={https://reference.wolfram.com/language/ref/ChartElementFunction.html}, note=[Accessed: 12-April-2025 ]}