Be Still, My Beating Chart
Data. Wow. The web has a lot of data. Around 1.2 zettabytes. It can all be a bit overwhelming. Especially if you have no way to visualize it. If only UBot Studio had a way to visualize data. Oh, right, it does! Be still, my beating chart!
So how do we make a chart in UBot Studio? Simple, just open up the bot bank, open the “Charting” category, and drag a chart command into the script.
Give it a useful name, because the name will be used in the chart itself. As you can see, once you hit “ok”, a new tab is created beside the browser.
But a chart with no data is like a bowl with no salsa. Let’s put some data in there. Paste the following code into your script:
clear all data loop(20) { add item to list(%data,$rand(1,100),"Don't Delete","Global") }
This bit of code just creates a list called %data, and fills it with 20 random numbers. Let’s give it a quick run.
Great, now we have have some data to put in our chart, and some salsa to put in our bowl. Next we’re going to drag a plot command into our chart command. We’ll set the Data parameter to our %data list, and the plot type to bar graph.