|
Table of Contents
Overview
This documentation is written for version 1, which is enabled by adding the parameter
An ExampleA typical SP Chart Getting Started
Locale (
|
| Description | Image |
|---|---|
Using French-Canada locale (fr-CA)
|
locale=fr-CA
|
chf)The background color of the chart can be controlled using the chart fill option.
chf=<fill_type>,s,<color>
The part of the chart being filled. Specify one of the following values:
bg - Background fill| Description | Image |
|---|---|
Set the area outside of the chart to blue (0000FF).
|
chf=bg,s,0000ff
|
Set the area inside of the chart to blue (0000FF).
|
chf=c,s,0000ff
|
chgx)
You can define grid lines with the chgx option.
chgx=<axis>,<opt_dash_length>,<opt_space_length>,<opt_color>,<opt_thickness>
|...|
<axis>,<opt_dash_length>,<opt_space_length>,<opt_color>,<opt_thickness>
The axis with whose major interval you want the grid lines synchronized.
x - Vertical grid lines aligned with the x-axis major intervaly - Horizontal grid lines aligned with the y-axis major interval.000000)| Description | Image |
|---|---|
Draw a chart with solid gray (CCCCCC) horizontal axis lines and dotted
red (DD0000) vertical axis lines.
|
chgx=x,1,3,DD0000|y,1,0,CCCCCC
|
chxt)
The chxt option allows you to specify where labels are drawn. If labels
are not specified via the chxl option, the axisrange is drawn.
chxt=<axis_1>,...,<axis_n>
| Description | Image |
|---|---|
| Draw all labels twice |
chxt=x,x,t,t,y,y,r,r
|
chxr)
The chxr option controls a range for one or more axes.
chxr=<axis_1>,<range_start_1>,<range_end_1>,<opt_major_interval_1>,<opt_minor_interval_1>
|...|
<axis_n>,<range_start_n>,<range_end_n>,<opt_major_interval_n>,<opt_minor_interval_n>
Specify the axis, using the following axis codes:
x - X-Axis on the bottom of the chartt - X-Axis on the top of the charty - Y-Axis on the left of the chartr - Y-Axis on the right of the chart| Description | Image |
|---|---|
| Specify bottom and right axes |
chxt=x,r
|
| Specify top and left axes |
chxt=t,y
|
chxl)
You can specify labels with the chxl option. If no Labels are specified, the axisrange is drawn.
chxl=<axis_index_1>:<label_1>,...,<label_n>[|...|<axis_index_n>:<label_1>,...,<label_n>]
chxt option.
| Description | Image |
|---|---|
| Draw Labels beneath the axis. |
chxt=x,x,r
|
chxs)
You can control the style of individual axis labels by using the chxs
option.
chxs=<axis_index>,<label_color>,<font_size>,<alignment>,<tick>,<tick_color>,<opt_font_style>
|...|
<axis_index>,<label_color>,<font_size>,<alignment>,<tick>,<tick_color>,<opt_font_style>
| Description | Image |
|---|---|
| Draw the bottom axis fat, larger and blue |
chxt=x,x,r
|
chd, chm)chd=t:<x_coordinate_1>,...,<x_coordinate_n>|<y_coordinate_1>,...,<y_coordinate_1>
chm=<markertype>,<color>,<data_series>,<data_index>,<fontsize>
The dataseries has to be specified but is ignored
Specifies which datapoints are drawn. If <opt_end> is not given only 1 point is specified. <opt_step> is 1 by default
| Description | Image |
|---|---|
| You can draw many different markers, and mark several datapoints at once. |
chd=t:10,20,30,40|40,30,20,10
|
| Draw every second point |
chd=t:10,20,30,40|40,30,20,10
|
You can use the chm=N*o option to draw circles with text in it. May
change in the future. If no preceding text is defined, the circles get enumerated.
|
chd=t:10,20,30,40|40,30,20,10
|
| You define a text as well. |
chd=t:10,20,30,40|40,30,20,10
|
chdlp, chdl, chco, chdls)
With the chdlp, chdl, chco, chdls options you can draw a Legend. You
should mark your data according to your legend.
chdlp=<position>
chdl=<legend_label_1>|...|<legen_label_n> -- This option determines what is drawn in the legend.
chco=<color_1>*<opt_shape_1>|...|<color_n>*<opt_shape_n>
chdls=<color>,<size> -- Optional
Only top(t) and bottom(b) are implemented
Black by default
Can be any ShapeMarker that you can draw in the SP-Chart except for N.
Square by default.
Sets the color and fontsize of the legend labels. Black and the fontsize of the
chart (chfts) by default.
| Description | Image |
|---|---|
| All defaults, except for labels. |
chdlp = b
|
| All defaults, except for labels. |
chdlp = b
|