Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_legend()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_LEGEND()


Syntax:        L_LEGEND(<expN1>,<expN2>,<expN3>,<expN4>,
               <expN5>,<array1>,<array2>)


Purpose:       To attach legends in the specified colours for use with
               graphs.


Arguments:     <expN1> is the x co-ordinate of the upper left corner
               of the legend.

               <expN2> is the y co-ordinate of the upper left of the
               legend.

               <expN3> specifies whether the legend will be displayed
               in row or column format 1 indicates row format, 0
               indicates column format.

               <expN4> is the color code for the foreground color of
               the text.

               <expN5> is the color code for the background color of
               the text.

               <array1> is an array of labels.

               <array2> is an array of color codes indicating which
               colours are to be attached to the labels.



Returns:       Nothing.


Usage:         Can be used to indicate what is represented by the
               different colors of a stacked bar graph.


Examples:      DECLARE labels [5]
               DECLARE colors [5]

               labels[1] = "Australia"
               labels[2] = "Ireland"
               labels[3] = "Wales"
               labels[4] = "Zimbabwe"
               labels[5] = "South Africa"

               colors[1] = 2
               colors[2] = 3
               colors[3] = 4
               colors[4] = 5
               colors[5] = 6

               L_GMODE(16)
               L_LEGEND(50,20,0,15,1,labels,colors)


Language:      C

See Also: L_HSBAR() L_VSBAR() L_PIE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson