UNPKG

scrivito-piechart

Version:

A piechart React component/Scrivito widget for the Scrivito CMS.

33 lines (20 loc) 789 B
# Scrivito Piechart [![CMS: Scrivito](https://img.shields.io/badge/CMS-Scrivito-brightgreen.svg)](https://scrivito.com) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) A piechart React component/Scrivito widget for the Scrivito CMS. ## Screenshot ![Screenshot](https://raw.githubusercontent.com/mdwp/scrivito-piechart/master/piechart-screenshot.png) ## Installation Open your terminal. `$ cd` to your Scrivito project ```shell $ 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: ```js import "scrivito-piechart"; ``` ## Widget properties In the widget properties you can set: - Label for pie item - Value for the pie item