Curl Global Community
Page 7: Summary - Printable Version

+- Curl Global Community (https://communities.curl.com)
+-- Forum: Tutorials (https://communities.curl.com/forumdisplay.php?fid=3)
+--- Forum: Public Training (https://communities.curl.com/forumdisplay.php?fid=4)
+---- Forum: Curl IDE Made Easy (https://communities.curl.com/forumdisplay.php?fid=6)
+----- Forum: Try 4: Displaying Data as a Graph (https://communities.curl.com/forumdisplay.php?fid=12)
+----- Thread: Page 7: Summary (/showthread.php?tid=69)



Page 7: Summary - ashimo - 06-20-2011

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


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, …}