This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ChartStyle

ChartStyle
is an option for charting functions that specifies styles in which chart elements should be drawn.
  • ChartStyle->g specifies that graphics directive g should be used to draw all chart elements.
  • ChartStyle specifies that successive directives should be used cyclically for successive elements in each dataset.
  • ChartStyle uses the successive to contribute styles for successive dimensions in nested lists of datasets.
  • With the form ChartStyle, the i, j, ... element in a nested list of datasets has a style given by applying , then , etc.
  • Any that is None contributes no style directives.
  • A specification is effectively equivalent to {None, ..., None, {g1, g2, ...}}.
  • The directives that can be used in ChartStyle include:
Dashing[{w1,...}]dashing specification
Directive[g1,g2,...]composite graphics directive
EdgeForm[g]edge-drawing specification
FaceForm[g]face-drawing specification
Glow[c]glow color
GrayLevel[i]intensity
Hue[h]hue
Opacity[a]opacity
PointSize[d]point size
Red, Blue, etc.named colors
RGBColor[r,g,b]RGB color
Specularity[s]surface specularity
Thickness[w]line thickness
  • ChartStyle effectively takes the list of styles needed by ChartStyle to be given by sampling ColorData["name"][x] at equally spaced values of x.
  • Style can be used to style chart elements associated with individual data points or datasets. Such specifications are used after specifications from ChartStyle.
Give a list of styles:
Use "Gradient" colors from ColorData:
Use "Indexed" colors from ColorData:
Style each column of data:
Style each row of data:
Style both rows and columns of data:
Give a list of styles:
In[1]:=
Click for copyable input
Out[1]=
Use "Gradient" colors from ColorData:
In[2]:=
Click for copyable input
Out[2]=
Use "Indexed" colors from ColorData:
In[3]:=
Click for copyable input
Out[3]=
 
Style each column of data:
In[1]:=
Click for copyable input
Out[1]=
Style each row of data:
In[2]:=
Click for copyable input
Out[2]=
Style both rows and columns of data:
In[3]:=
Click for copyable input
Out[3]=
New in 7