js-datasets-iris
Package provides the "Iris dataset for javascript
Install
npm install js-datasets-iris
Usage
In nodejs
var iris = // == PRITN ROW COUNT == //console; // == PRINT ALL DATA in the format of [[sepalLength, sepalWidth, petalLength, petalWidth, specisies], ...] == //console; // == PRINT the sepalLength == //console; // == PRINT the sepalWidth == //console; // == PRINT the petalLength == //console; // == PRINT the petalWidth == //console; // == shuffle the data rows in the iris dataset == //iris;
In HTML
Include the "node_modules/js-datasets-iris/build/jsiris.min.js" (or "node_modules/js-datasets-iris/src/jsiris.js") in your HTML <script> tag
The sample code can be found in the example.html