Chart

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with " 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 creat...")
 
 
(3 intermediate revisions by one user not shown)
Line 7: Line 7:
  
 
'''Name:''' Name of the chart for the graph being generated.
 
'''Name:''' Name of the chart for the graph being generated.
 +
 +
'''Charting should only be used in UBot Studio only. It is not compatible for compiled bots at the moment.'''
  
 
== Example ==
 
== Example ==
 
<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")
 
}
 
}
chart("Population") {
+
chart("My Data") {
     plot("Line Graph",%population)
+
     plot("Line Graph",%Data)
 
}
 
}
 +
 +
 
</pre>
 
</pre>
  
Line 23: Line 28:
  
  
[[File:chartplot.jpg]]
+
[[File:plotchart.jpg]]

Latest revision as of 13:31, 24 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.

Charting should only be used in UBot Studio only. It is not compatible for compiled bots at the moment.

[edit] 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.


Plotchart.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox