UNPKG

canvasxpress-cli

Version:

Node program to run canvasXpress in the command line

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