This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.

# ChartElementFunction

 ChartElementFunction is an option for charting functions such as BarChart that gives a function to use to generate the primitives for rendering each chart element.
• specifies that each chart element should be rendered with the graphics primitives given by f[region, values, metadata].
• Lists of built-in named functions for specific charting functions can be obtained from ChartElementData["BarChart"], etc.
• In , the region argument to f is given as follows:
 BarChart,RectangleChart,Histogram,BubbleChart {{xmin, xmax}, {ymin, ymax}} BarChart3D,RectangleChart3D,Histogram3D,BubbleChart3D {{xmin, xmax}, {ymin, ymax}, {zmin, zmax}} PieChart,SectorChart {{min, max}, {rmin, rmax}} PieChart3D, SectorChart3D {{min, max}, {rmin, rmax}, {zmin, zmax}}
• In , the values argument to f is given as follows:
 BarChart,BarChart3D,PieChart,PieChart3D y RectangleChart,SectorChart {x, y} RectangleChart3D, SectorChart3D,BubbleChart {x, y, z} BubbleChart3D {x, y, z, w} Histogram,Histogram3D list
• 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}.
Use a built-in ChartElementFunction:
Construct a custom rendering function:
New in 7