A piechart React component/Scrivito widget for the Scrivito CMS.
Open your terminal.
$ cd
to your Scrivito project
$ npm install scrivito-piechart
Import the widget in your javascript (e.g. in index.js
or Widgets/index.js
).
Add this line to your index.js:
import "scrivito-piechart";
In the widget properties you can set:
- Label for pie item
- Value for the pie item