0.2.0 • Published 7 years ago

aframe-chartbuilder-component v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

aframe-chartbuilder-component

A component for using ChartBuilder charts in AFrame.

Here is a basic example

Properties

PropertyDescriptionDefault Value
srcChartBuilder json locationdata.json

Usage

Properties

The src property requires a path to a json file exported by ChartBuilder. It can be local or remote.

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.2.0/aframe.min.js"></script>
  <script src="https://rawgit.com/impronunciable/aframe-chartbuilder-component/master/dist/aframe-chartbuilder-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity chartbuilder="src: data.json"></a-entity>
  </a-scene>
</body>

NPM Installation

Install via NPM:

npm install aframe-chartbuilder-component

Then register and use.

require('aframe');
require('aframe-chartbuilder-component');