HOWTO: Torus Chart on Canvas

204 views
Skip to first unread message

TimAI2

unread,
Aug 6, 2019, 4:20:42 PM8/6/19
to mitappinv...@googlegroups.com
What is a torus chart, well it is a doughnut (donut) chart.
This first example uses a list of values, which are fed into a procedure
which generates the torus chart and creates a legend. no mess, no fuss, just that.
torus.webm
blockstorusprocedure.png
blockstoruscall.png
Torus.aia

TimAI2

unread,
Aug 6, 2019, 4:22:52 PM8/6/19
to mitappinv...@googlegroups.com
This second example uses a list of lists with labels and values
It also provides a tooltip type experience when a segment of the torus is touched/clicked
A couple of global variables and the canvas touched event required for this
torustooltip.webm
blockstooltipcanvas.png
blockstooltipvar2.png
blockstooltipvar1.png
blockstooltipprocedure.png
blockstooltipcall.png
TorusLegend.aia

ABG

unread,
Aug 6, 2019, 5:33:21 PM8/6/19
to MIT App Inventor Forum
(added to Charts and Graphs section of FAQ)
for Draw Arc example
ABG

SteveJG

unread,
Aug 6, 2019, 7:57:04 PM8/6/19
to MIT App Inventor Forum

ABG

unread,
Aug 6, 2019, 10:51:50 PM8/6/19
to MIT App Inventor Forum
Nice threads!
ABG

TimAI2

unread,
Aug 7, 2019, 6:24:17 AM8/7/19
to MIT App Inventor Forum
and if you want to use google chart colours, here are the first 20:

googlechartfirst20colours.png


googlechartcolours-ai2.csv
googlechartcolours-rgb.csv
Reply all
Reply to author
Forward
0 new messages