06-20-2011, 01:09 PM
TRY 4 Summary
Two types of graphs: LayeredChart & PieChart
LayeredChart
Used to create a graph on which data is plotted in two dimensions, with an x- and y-axis
PieChart
Declaring array variables
Two types of graphs: LayeredChart & PieChart
LayeredChart
Used to create a graph on which data is plotted in two dimensions, with an x- and y-axis
Code:
{LayeredChart
{ Specification of each layer
x-axis-data =
{ChartDataSeries data RecordSet, RecordField used for X-axis label}
{ChartDataSeries data RecordSet, RecordField that is plotted}
|| Specify ChartDataSeries only for the RecordField value to be graphed
}
}
PieChart
Code:
{PieChart
{PieSet
label-data =
{ChartDataSeries data RecordSet, RecordField used as label},
{ChartDataSeries data RecordSet, RecordField that is plotted}
|| Specify ChartDataSeries only for the RecordField value to be graphed
}
}
- The graph axes can be set flexibly using top-axis, bottom-axis, left-axis, and right-axis.
- Any changes to the RecordSet data are automatically reflected on the graph.
- Declaring Curl array variables
Declaring array variables
Code:
let array-variable-name:{Array-of element-type-name} =
{{Array-of element-type-name} element 1, element 2, …}