Saturday, 23 July 2011
Text Format with Custom Scaling
Text format with custom scaling lets you specify arbitrary positive or negative floating point numbers, in combination with a scaling parameter that lets you specify a custom range for your chart. This chart is useful when you don't want to worry about limiting your data to a specific range, or don't want to scale the data manually to fit nicely inside a chart. This format will adjust the zero line for you, as necessary. The format of the data is the same as with basic text format.
For automatic scaling, specify
chds=a
.Text formatting (whether simple or with custom parameters) results in the longest data string of all formats.
Syntax:
Text formatting with custom scaling requires two parameters:
chd=t:val,val,val|val,val,valchds=<series_1_min>,<series_1_max>,...,<series_n_min>,<series_n_max>
- chd=t:<data>
- Same as plain data format: one or more comma-separated values per series, multiple series separated by a pipe character (
|
). The range of permitted values in each series is specified by thechds
parameter. - chds
chxr
parameter. Valid values range from (+/-)9.999e(+/-)199. You can specify values in either standard or E notation.-
- <series_1_min>
- The minimum allowable value in the first series. Lower values are marked as missing.
- <series_1_max>
- Maximum allowable value in the first series. Higher values are truncated to this value.
Example:
A bar chart with a min/max scale of -80—140. The -90, -60, and 140 values fall within the scale, so they are not truncated. Note that the zero line is adjusted for you, 80/(140 + 80) = 0.36 of the way up the y-axis. Also note that the default y-axis range is still 0—100, despite the chds parameter, so the label values do not reflect the actual data values. | chd=t:30,-60,50,120,80,-90& |
0 comments:
Post a Comment