JS互动多层饼图:cake-chart

jopen 9年前

Demo

Webpack Chart

Install

> npm i -S cake-chart

Simple Example

import CakeChart from 'cake-chart';    const data = {    value: 100,    label: 'SUM = 100',    children: [{      value: 50,      children: [{        value: 10      },      {        value: 20      }]    }, {      value: 30    }, {      value: 20    }]  };    ...    render () {    return (      <CakeChart data={data} />    );  }

项目主页:http://www.open-open.com/lib/view/home/1439221074270