Chart
From UBot Studio
(Difference between revisions)
Line 11: | Line 11: | ||
<pre> | <pre> | ||
+ | clear list(%Data) | ||
loop(20) { | loop(20) { | ||
add item to list(%Data,$rand(200000000,500000000),"Don\'t Delete","Global") | add item to list(%Data,$rand(200000000,500000000),"Don\'t Delete","Global") | ||
Line 17: | Line 18: | ||
plot("Line Graph",%Data) | plot("Line Graph",%Data) | ||
} | } | ||
+ | |||
</pre> | </pre> |
Revision as of 20:29, 8 June 2015
This command is a Chart Command in the UBot Studio Extended Library. This will create a tab in the browser area.
A chart is generated for the graph being created.
This command works with the Plot command.
Name: Name of the chart for the graph being generated.
Example
clear list(%Data) loop(20) { add item to list(%Data,$rand(200000000,500000000),"Don\'t Delete","Global") } chart("My Data") { plot("Line Graph",%Data) }
Running the command will run the loop command to generate data, and then run the Plot command to plot the data within the charting area.