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,val
chds=<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 the chds parameter.
chds
A set of one or more minimum and maximum permitted values for each data series, separated by commas. You must supply both a max and a min. If you supply fewer pairs than there are data series, the last pair is applied to all remaining data series. Note that this does not change the axis range; to change the axis range, you must set the 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 thechds parameter, so the label values do not reflect the actual data values.
Bar chart with 5 values, text encoding with data scaling.
chd=t:30,-60,50,120,80,-90&
chds=-80,140

0 comments:

About Me

About Me !

Custom Scaling

| 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,val
chds=<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 the chds parameter.
chds
A set of one or more minimum and maximum permitted values for each data series, separated by commas. You must supply both a max and a min. If you supply fewer pairs than there are data series, the last pair is applied to all remaining data series. Note that this does not change the axis range; to change the axis range, you must set the 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 thechds parameter, so the label values do not reflect the actual data values.
Bar chart with 5 values, text encoding with data scaling.
chd=t:30,-60,50,120,80,-90&
chds=-80,140


0 comments:

Post a Comment

Lorem ipsume