Vvidget Server ► Dictionary ► Pie Chart
This section explains how to form an input string for a pie chart such as these:
Format | |||
1 | 2 | 3 | 4 |
The input string has this form:
chart_type=5&chart_subtype=0&chart_format_type=1&data_values=v1 v2 ... vN&fill_color=RRGGBBAA&templates=string
The following table defines the input string key and value pairs:
Chart Specific Entries | |
Key | Value Description |
chart_type¹ | The chart type is always 5 (aliased to pie), indicating a pie chart. |
chart_subtype¹ | The chart subtype is always 0. (aliased to default) |
chart_format_type¹ | The chart format type is an index from 1 to 4 (aliased to {labeled , extruded, extruded-exploded, default}) which produces the varied results of the figures above. |
data_values | Data values is a white space delimited list of values representing the proportional arc of the wedge. See Data Oriented keys for additional information and keys. |
fill_color | A hex encoded representation of a RGBA color value. This only is in effect for format type 1. If this key is not present then the color table template is used. |
templates | A custom Templates directory. |
If you incorporate this functionality into your web site please consult Web URL.
You can also modify the following Templates:
Template Document Names | |
Template | Description |
PVST_Pie_Chart | Forms the static attributes for this chart type. |
PVST_pie_color_table | Forms the data color attributes (wedge fill colors) for odd format type indices. |
PVST_pie_color_table_1 | Forms the data color attributes (wedge fill colors) for even format type indices. |
The following Server Side Attributes define additional non-graphic attributes. A file with this name in the templates directory will alter the parameters that appear in the attribute file.
Server Side Attributes Names | |
Name | Description |
PVST_Pie_Chart_attributes | Main server side attributes. |