Skip to content

Shape Markers

You can specify graphical markers for all data points on a chart. If two or more markers occupy the same point, the markers are drawn in the order in which they appear in the chm parameter of the data series definition.

You can combine shape markers with any other chm parameters using a pipe character (|) to separate the chm parameters.

Syntax

Specify one set of the following parameters for each series that should be marked. To mark multiple series, create additional parameter sets, delimited by a pipe character. You do not need to mark up all series. If you do not assign markers to a data series, it will not get any markers.

chm=
  <marker_type>,<color>,<series_index>,<size>
    |...|
  <marker_type>,<color>,<series_index>,<size>
  • <marker_type> The type of marker to use. Specify one of the following types:

    • c - Cross
    • C - Rectangle. If a rectangle marker, you must have at least two data series, where series 0 specifies the bottom edge and series 1 specifies the top edge. specifies the width of the rectangle, in pixels.
    • d - Diamond
    • o - Circle
    • s - Square
    • x - An X
  • <color> The color of the markers for this series, in RRGGBB hexadecimal format.

  • <series_index> The zero-based index of the data series on which to draw the markers. Ignored for h markers and markers that specify location by x/y position (start with the @ character). You can use hidden data series as a source for markers; see Compound Charts for more information. Grouped vertical bar charts support a special extended syntax to align markers with specific bars.

  • <size> The size of the marker, in pixels.

Examples

Here's an example using diamonds for one data series, and circles for the other data series.

shape markers

chm=o,ff9900,0,-1,15.0|d,ff0000,1,-1,10.0

This second example square diamond markers on data point as well as under the line filling:

diamond shape markers

chm=s,E4061C,0,-1,15.0|B,FCECF4,0,0,0