Table Of Contents

Vvidget ServerDictionary ► Pie Chart

This section explains how to form an input string for a pie chart such as these:

Format
1234

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
KeyValue 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_valuesData 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_colorA 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.
templatesA 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
TemplateDescription
PVST_Pie_ChartForms the static attributes for this chart type.
PVST_pie_color_tableForms the data color attributes (wedge fill colors) for odd format type indices.
PVST_pie_color_table_1Forms 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
NameDescription
PVST_Pie_Chart_attributesMain server side attributes.



© Copyright 1993-2020 by VVimaging, Inc. (VVI); All Rights Reserved. Please email support@vvi.com with any comments you have concerning this documentation. See Legal for trademark and legal information.