Extension:Plotters/Plotkit scripts

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

Plotkit-scripts

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

Preprocessors

 * labelrow|labelrow.js
 * labelcolumn|labelcolumn.js

tofloat.js
The extension sends 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):

labelcolumn.js
This preprocessor script removes the first column of data, and uses it as labels.

labelrow.js
This preprocessor script removes the first roe of data, and uses it as labels.