|
Table of Contents
OverviewThe long-short-net chart is a horizontal, overlapping bar chart used to display the long, short and net asset allocation positions in an investment or in a portfolio of investments. The chart type code for the line chart is Getting Started
Colors (
|
Description | Image |
---|---|
Standard Morningstar asset allocation colors. |
|
Make the bar at the top red (FF0000 ), the bar second from the top green (00FF00 ), the bar third from the top blue (0000FF ), the bar fourth from the top yellow (FFFF00 ) and the bottom bar cyan (00FFFF ). |
|
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.
chft=<font_name> chfts=<font_size>
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 18-pixel-tall Times New Roman. |
|
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 fillDescription | Image |
---|---|
Set the background of the chart to blue (0000FF ).
|
chf=bg,s,0000ff
|
chgx
)
You can control the chart grid lines using the chgx
option.
chgx
stands for axis-aligned grid lines. For the long-short-net
chart, vertical grid-lines are drawn every 25% For historical reasons, the
long-short-net chart displays dotted vertical grid lines by default.
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.
y
- Vertical grid lines aligned at each 25% allocation.000000
)Description | Image |
---|---|
Default grid lines |
|
Turn off all grid lines. |
|
Draw a chart with solid vertical grid axis lines. |
|
Draw a chart with solid gray (CCCCCC ) vertical axis lines. |
|
Draw a chart with 3-pixel-thick dashed red (FF0000 )
vertical grid lines. |
|
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 labels in large red underlined font |
|
chxlg
)
The chxlg
option allows you to manually specify the gap
between the labels for an axis and the axis itself.
chxlg=<axis_1>,<gap_1> |...| <axis_n>,<gap_n>
Display the axis, using the following axis codes:
x
- X-Axis on the bottom of the chartDescription | Image |
---|---|
Create a 20-pixel gap between the labels of the x-axis on the bottom of the chart and the chart itself. |
|