A library to create 3D-charts using three.js
npm install anchart3d
npm install anchart3d` and you're good to go.
#### Getting started
Just place this script tag at the bottom of your page and initialize it as shown below.
`
`
There is also an optional stylesheet file "anchart3d.css", that contains basic styling information to get things started easier.
After that, you need to initialize and (optionally) configure the chart:
`
var configuration = {
"details": true,
"tooltip": true,
"showOnScreenControls": true,
"legend": true,
"startAnimation": true,
"antialias": true,
};
var pieChart = anchart3d.createChart("anchart3d")
.setConfig(configuration)
.pieChart()
.data(jsonData)
.draw();
`
createChart("anchart3d") points to a ``` in the document having the id="anchart3d". This div will contain all chart related elements. The name or the id respectively, can be anything but has to the same in the div and must be passed as argument to the createChart() method.
#### Further reading
Feel free to have a look at the project website to find out about all the possiblities and how to use them:
https://dekilla.github.io/anchart3d