|
Table of Contents
Overview
The Equity Style chart is a chart which displays a single equity style for an investment.
The chart type code for this chart is Getting Started
Locale (
|
Description | Image |
---|---|
Render the equity style box barometer using French-Canada locale (fr-CA )
|
locale=fr-CA
|
Render the equity style box barometer using Chinese-China locale (zh-CN )
|
locale=zh-CN
|
chco
)
Users can explicitly choose the color they want to render the selected equity style
box using the chco
option. By default, BPCharts renders the equity
style box in blue.
See also Colors.
chco=<color>
Description | Image |
---|---|
Change the selected equity style box color to a shade of red (9F375F ).
|
chco=9F375F
|
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 - Defaults to white (FFFFFF
)c
- Chart area fill - the part of the chart that contains the data
- Defaults to transparent (00000000
)Description | Image |
---|---|
Fill the chart background with pale grey (CCCCCC ).
|
chf=bg,s,CCCCCC
|
Fill the chart background with semi-transparent yellow (FBF8DDCC ).
|
chf=bg,s,FBF8DDCC
|
Fill only the charting area with pale grey (CCCCCC ).
|
chf=c,s,CCCCCC
|
Fill the charting area with semi-transparent yellow (FBF8DDCC ). Note:
We must also make the chart background fully transparent (00000000 ),
otherwise the semi-transparent area will simply show the default chart background
(white).
|
chf=bg,s,00000000
|
chft
and chfts
)
The fonts that BPCharts uses to renders labels can be controlled using the chft
(font name) and chfts
(font size) options.
For raster (e.g. PNG) charts, only fonts which exist on the BPCharts server may be used. For vector (e.g. SVG) charts, the font does not need to exist on the BPCharts server but the client which renders the SVG must have the font installed.
Changing the font name or size only has effect if you have enabled labels using
chxt
. See Axis Definitions for more
detail.
chft=<font_name> chfts=<font_size>
The name of the font to use to render the chart. Defaults to Verdana.
The size of the font to use to render the chart. For raster charts (e.g. PNG) this is in pixels; for vector charts (e.g. SVG) this is in points.
For raster charts, defaults to 11 pixels tall. For vector charts, defaults to 8 points tall.
Description | Image |
---|---|
Draw the axis labels in 14-pixel-tall Times New Roman. |
chft=Times New Roman
|
chmg
)A chart's margins are defined as the area outside of the rendering of the chart data itself. The chart margin may include labels or legends.
By default, BPCharts automatically picks chart margins which fit the labels and legends.
chmg=<top>,<right>,<bottom>,<left>
Description | Image |
---|---|
Adjust the chart margins to 5 pixels on top, 30 pixels on the right, 20 pixels on the bottom, and 10 pixels on the left. Use background and chart area colors to demonstrate the separation between the two. |
chmg=5,30,20,10
|
chxt
, chxl
)
You can control chart axes using the chxt
and chxl
options.
The latter is only available if the version is 1 (chvs = 1
).
The chxt
option controls which axes you wish to display.
The chxl
option allows you to manually specify the labels for an axis.
If you do not specify labels via chxl
, default ones will be provided
based on your current locale.
chxt=<axis_1>,...,<axis_n> chxl= <axis_index>:|<label_1>|<label_2>|<label_3> |...| <axis_index>:|<label_1>|<label_2>|<label_3>
Display the axis, using the following axis codes:
x
- X-Axis on the bottom of the chartr
- Y-Axis on the right of the chartchxt
, for which you wish to change
the labels.Description | Image |
---|---|
Turn on x-axis on bottom only. |
chxt=x
|
Show x-axis labels as colors and y-axis labels as airport codes. |
chxt=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 right axis fat |
chxt=x,r
|