fran-aguilar / a-framedc

charts built with A-frame
https://fran-aguilar.github.io/a-framedc/
26 stars 8 forks source link

a-framedc

3D charts built with A-frame. A-framedc ships with a set of A-Frame components and a library to use them in easier way.It provides the following features:

Our library exports a single global object (a-framedc) on which we have the following methods:

Browser Installation

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
  <script src="https://unpkg.com/a-framedc@1.0.7/dist/aframedc.min.js"></script>
</head>

<body>
    <a-scene>
    <a-assets>
        <a-asset-item id="barsdata" src="http://path/to/your/file.json"></a-asset-item>
    </a-assets>
    <a-entity id="bars" barchart="width:14;gridson:true;src:#barsdata"></a-entity>
    </a-scene>
</body>

NPM Installation

Install via NPM:

npm install a-framedc

Then register and use.

require('aframe');
var aframedc = require('a-framedc');

Contact

This project is under active development if you have any issue please let me know. Every help is much appreciated.