Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Charting and Information Visualization > Chart Styling & Layout > ChartElementFunction >
Mathematica > Visualization and Graphics > Data Visualization > Charting and Information Visualization > Chart Styling & Layout > ChartElementFunction >
Mathematica > Data Manipulation > Statistical Data Analysis > Statistical Visualization > Charting and Information Visualization > Chart Styling & Layout > ChartElementFunction >

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.
  • ChartElementFunction->f specifies that each chart element should be rendered with the graphics primitives given by .
  • Lists of built-in named functions for specific charting functions can be obtained from , etc.
  • 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 the metadata associated with is . With input data of the form the metadata associated with is .
Use a built-in ChartElementFunction:
Construct a custom rendering function:
Use a built-in ChartElementFunction:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
 
Construct a custom rendering function:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF