Extension:Plotters/Plotkit scripts

Please feel free to add your own scripts, or to improve these.

Plotkit-scripts

 * bar|addticks.js|plotkitlabels.js|bar.js
 * pie|tofloat.js|addticks.js|plotkitlabels.js|pie.js
 * line|addticks.js|plotkitlabels.js|line.js

tofloat.js
The extension send all data and arguments as strings. Some scripts require floats, not strings. This will turn a single column of data from strings to floats. This should be improved to convert all data.

addticks.js
Plotkit requires data to be in a format like so:

0,1 1,1.2 2,3484 3,1 4,1

Notice that the first column of data is sequential, this helper script will transform data like:

1 1.2 3483 1 1

Into the format above.

plotkitlabels.js
This script will take labels given as an argument and convert them into a format that plotkit wants:

bar.js
This is a simple bar graph. This script should be improved to not require labels (at minimum):

pie.js
This is a simple bar graph. This script should be improved to not require labels (at minimum):

line.js
This is a simple bar graph. This script should be improved to not require labels (at minimum):