Line Color and Thickness

You can alter both the color and the thickness of a data series. To change the color of a single series of data, create a style and specify a foreground color.

Example 1

A style is used to change the color and thickness of the first series in the plot.

You can copy this example into your document as-is.

<style name="blackLine">
  <foreground color="black"/>
  <lineThickness>2</lineThickness>
</style>

<xyPlot>
  <series style="blackLine">
    <data>1 2; 3 4; 5 6</data>
  </series>
  <series>
    <data>2 2; 4 4; 6 6</data>
  </series>
  <series>
    <data>3 2; 5 4; 7 6</data>
  </series>
</xyPlot>
line-color-thickness.jpg

Example 2

You can change the thickness of all series in a plot by using the style name series. Note that this style will affect every series in every plot in the scope of the style. 

You can copy this example into your document as-is.

<style name="series">
  <lineThickness>4</lineThickness>
</style>

<xyPlot>
   <series name="circle">
     <data>0 0; 1 1; 2 2</data>
   </series>
   <series name="square">
     <data>-1 -1; 0.5 -0.5; 2 -1</data>
   </series>
</xyPlot>

Available Colors

The colors available are from the list of  X11 color names from the X Windows System. Colors can be defined using their name in camel case (e.g. "seaGreen"), or a RGB/RGBA value can be used (eg. "46 139 87" or "46 139 87 100").  

Alternatively, you can colour individual points in a series using per-vertex colouring