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.
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:
-
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 ChartElementFunction->f, 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}.
Examples
Basic Examples (2)
See Also
ChartElements ColorFunction VertexRenderingFunction EdgeRenderingFunction
Related Guides
Related Workflows
Related Links
Introduced in 2008
(7.0)