UNPKG

canvasxpress-cli

Version:

Node program to run canvasXpress in the command line

31 lines 848 B
<html> <head> <!-- CanvasXpress --> <link rel="stylesheet" href="../src/canvasXpress.css" type="text/css"/> <script type="text/javascript" src="../src/canvasXpress.js"></script> <!-- Page Script --> <script> onReady(function () { var cx = new CanvasXpress("cX", { "y" : { "vars" : ["Variable1"], "smps" : ["Sample1", "Sample2", "Sample3"], "data" : [[33, 44, 55]] } }, { "graphOrientation": "vertical", "graphType": "Bar", "title": "Simple Bar graph" } ); }); </script> </head> <body> <div> <canvas id='cX' width='600' height='600' data-responsive='true' data-aspectRatio='1:1'></canvas> </div> </body> </html>