i want insert a graphic table

175 views
Skip to first unread message

Jasco Orion

unread,
Jan 25, 2017, 5:18:52 AM1/25/17
to MIT App Inventor Forum
hello
sorry form my english. im spanish.
i want to insert a estadistic table in my app whit the calification of the day of the user (1-5) and the day of these calification. something like that:

how can i made it?
thank you

SteveJG

unread,
Jan 25, 2017, 8:09:06 AM1/25/17
to MIT App Inventor Forum
Here is a simple way to make a bar graph    https://groups.google.com/forum/#!searchin/mitappinventortest/bar$20graph%7Csort:relevance/mitappinventortest/-_m3Qe90ZiY/Jd7pOePTkpUJ  


A more complex way would be to use the Canvas tool, either using Sprites, where you use code to change the horizontal or vertical dimensions of the 'bar' sprites or use images

Another complex way would be to use an API,  Taifun has recommended 

How to generate an animated Pie Chart using the Chart.js library   in the past


Regards,
Steve

Taifun

unread,
Jan 25, 2017, 8:47:27 AM1/25/17
to MIT App Inventor Forum
see this example https://puravidaapps.com/pie.php, which generates a pie chart, there are several other possibilities, see also  the Chart.js JavaScript library.

Taifun 

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

SteveJG

unread,
Jan 25, 2017, 9:43:52 AM1/25/17
to mitappinv...@googlegroups.com
Here is how to do a bar graph simply using a Canvas and sprites

For the example, use seven png sprites, each 10 pixels x 10 pixels.  The Canvas as shown has 200 vertical pixels to work with .  You have to scale your actual input.  The text block could display your graph's scale.  You could also use a Background image in the Canvas to show a scale.  Use your imagination.


Regards,
Steve
Reply all
Reply to author
Forward
0 new messages