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_hsbar()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_HSBAR()


Syntax:        L_HSBAR(<expN1>, <expN2>, <expN3>, <expN4>, <expN5>,
               <expN6>, <expN7>, <array1>, <expN8>, <expN9>, <array2>,
               <expN10>, [<array3>, <expN11>,.... <array3+n>,
               <array11+n>])


Purpose:       Draws horizontal stacked bar graph with the specified
               data.


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

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

               <expN3> is the x co-ordinate of the lower right corner
               of the graph.

               <expN4> is the y co-ordinate of the lower right corner
               of the graph.

               <expN5> is the distance between the edges of successive
               bars.

               <expN6> is the width of a bar.

               <expN7> is the color code for the color of the axes.

               <array1> is the array containing the labels for the
               bars of the graph.

               <expN8> is the color code for the foreground color of
               the labels.


               <expN9> is the color code for the background color of
               the labels.

               <array2> is the array containing the first set of data
               items.

               <expN10> is the color code for the color by which
               <array2> data will be represented.

               <array3> is the array containing the second set of data
               items.

               <expN11> is the color code for the color by which
               <array3> data will be represented.

               <array3+n> is the array containing the final set of
               data items.

               <expN11+n> is the color code for the color by which
               <array3+n> data will be represented.


Returns:       Nothing.


Usage:         Useful for the graphical representation of database
               information.


Examples:      DECLARE labs[5]
               DECLARE arr1[5]
               DECLARE arr2[5]
               DECLARE arr3[5]

               labs[1] = "London"
               labs[2] = "Edinburgh"
               labs[3] = "Birmingham"
               labs[4] = "Glasgow"
               labs[5] = "Manchester"

               arr1[1] = 5
               arr1[2] = 10
               arr1[3] = 15
               arr1[4] = 20
               arr1[5] = 25

               arr2[1] = 7
               arr2[2] = 14
               arr2[3] = 10
               arr2[4] = 10
               arr2[5] = 8

               arr3[1] = 10
               arr3[2] = 7
               arr3[3] = 12
               arr3[4] = 10
               arr3[5] = 14

               L_JUST("L")
               L_GMODE(18)
               L_TSIZE(1)
               L_TEXT("Horizontal Stacked Bar Graph",1,150,80,4,14)
               L_HSBAR(140,250,280,440,10,10,3,labs,15,4,arr1,3,
               arr2,14,arr3,4)



Language:      C

See Also: L_GMODE() L_HBAR() L_VBAR() L_VSBAR() L_TSIZE()

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