ChartStyle

ChartStyle
is an option for charting functions that specifies styles in which chart elements should be drawn.

DetailsDetails

  • ChartStyle->g specifies that graphics directive g should be used to draw all chart elements.
  • ChartStyle->{g1,g2,} specifies that successive directives should be used cyclically for successive elements in each dataset.
  • ChartStyle->{spec1,spec2,} uses the successive to contribute styles for successive dimensions in nested lists of datasets.
  • With the form ChartStyle->{spec1,spec2,}, 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->scheme generates styles from ColorData[scheme,].
  • For an integer i, ChartStyle->i is effectively equivalent to ChartStyle->ColorData[i,"ColorList"].
  • ChartStyle->"name" effectively takes the list of styles needed by ChartStyle to be given by sampling ColorData["name"][x] at equally spaced values of x.
  • Style[data,s] can be used to style chart elements associated with individual data points or datasets. Such specifications are used after specifications from ChartStyle.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

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]=
Introduced in 2008
(7.0)