扫一扫分享
安装
npm install chartify --save-dev
使用
import Chartify from 'chartify';
let data = [{
xValue: '20.11.2016',
yValue: 5,
title: '007 Spectre'
}];
let config = {
theme: 'blue',
width: 50,
height: 10,
boxSize: 20,
isLineChart: false,
bordered: false
};
<Chartify
data={data}
container="films-container"
config={config}
/>
手机预览