Choosing the style of a line series legend

Series are represented in the legend box by a solid square by default, painted in the same color of respective series. Line series, including OHLC/HLC line series and XY line series, can have their legend symbols changed to match the shape of respective data points marks, in which case the symbols are painted in the same color of the marks and a horizontal line is displayed, cutting the legend symbol and painted in the same color of respective series. The symbol line also matches the series style, solid or dashed(only line series and OHLC/HLC line series. XY line series are always solid).

The parameter used to change the legend style is seriex_legendstyle. It accepts values 0 and 1. If 0 is passed the legend symbol is a solid square. If 1 is passed the legend symbol matches the shape of data points marks, displaying a horizontal line crossing the symbol.

The example below is the same of the previous topic, only two new lines are added to change the style of the legend symbols.



<applet code="GraphApplet.class" codebase="../../demo/applets/classes" archive="GraphChart.jar" width=400 height=300>

<param name="graphset0_gridon" value="yes">
<param name="graphset0_gridcolor" value="999999">

<param name="title" value="The JetChart Library,Choosing the style of a line series legend">
<param name="labels" value="label1,label2,label3,label4">

<param name="serie1" value="line,Line Series 1,ff0000">
<param name="serie1_values" value="50,70,55,130">
<param name="serie1_marksstyle" value="2">
<param name="serie1_markscolor" value="009900">
<param name="serie1_legendstyle" value="1">

<param name="serie2" value="line,Line Series 2,0000ff">
<param name="serie2_values" value="100,80,90,110">
<param name="serie2_marksstyle" value="4">
<param name="serie2_markscolor" value="ff0000">
<param name="serie2_legendstyle" value="1">

</applet>