Page 134 - Computer Genius Class 06
P. 134

Vertical Bar Graph in AI Connect


                  Here, data of the given table is used to draw a vertical bar graph. This table shows the number of
                  Mathematics books sold by a shopkeeper in six consecutive days.

                        Days                 Sunday     Monday     Tuesday    Wednesday      Thursday     Friday
                        No. of books sold       65        40          30           50           20          70
                  To draw a Vertical bar graph in AI  Connect, create a project, in it create Basic Coding activity. Then,
                  follow the given steps:

                  Step 1   Drag and drop Bar Chart block from the Pygal sub-category.
                  Step 2   Attach Title block and type the title of the graph in it.

                  Step 3   Attach add label block and add all the data and their labels using '+' button on it.
                  Step 4   Attach Render Chart block in the end to show the graph on the stage area. And click on
                            Run button.

















                  Horizontal Bar Graph in AI Connect

                  To draw a horizontal bar graph in AI  Connect, create a project, in it create Basic Coding activity.
                  Then, do the following coding and click on Run button:


















                         Let's REFRESH


                     l   A graph is an effective way to display data in the form of pictures in an organised way.
                     l   Graphs are also known as charts.
                     l   There are different types of charts such as line chart, bar chart, pie chart, etc.
                     l   Blocks of Graph Plot category are used to draw graphs in AI Connect.
                     l   Render Chart block is used to show the chart on the stage area.



                      132    Computer Genius-VI
   129   130   131   132   133   134   135   136   137   138   139