【文件属性】:
文件名称:sparkline:轻巧的React迷你图:chart_increasing::chart_increasing:
文件大小:192KB
文件格式:ZIP
更新时间:2021-03-31 04:37:24
react javascript component react-component sparkline
迷你图
轻巧的React迷你图 :sparkles: :chart_increasing:
安装
yarn add @rowno/sparkline
# or
npm install --save @rowno/sparkline
例子
function Spark ( ) {
const lines = [
{
values : [ 789 , 880 , 676 , 200 , 890 , 677 , 900 ] ,
colors : {
area : 'rgba(217, 227, 237, 0.5)' ,
line : '#193652'
}
} , {
values : [ 354 , 456 , 200 , 566 , 344 , 467 , 545 ] ,
colors : {
area :
【文件预览】:
sparkline-master
----.travis.yml(107B)
----example1.png(504B)
----.babelrc(291B)
----package.json(2KB)
----LICENSE(747B)
----src()
--------index.test.js.snap(883B)
--------index.js(2KB)
--------index.test.js.md(4KB)
--------index.test.js(2KB)
--------index.story.js(2KB)
----example2.png(981B)
----.gitignore(32B)
----README.md(2KB)
----yarn.lock(483KB)
----.editorconfig(166B)
----.gitattributes(12B)
----storybook()
--------config.js(189B)