@crpt/react-percent-bar

1.0.11 • Public • Published

react-percent-bar

Travis npm package Coveralls

Percent bars.

Usage

import { PercentBar } from  "@crpt/react-percent-bar";


<PercentBar
  title="Some title"
  value="Some value"
  count={4}
  values={null}
/>
PropName Description Example
title: String Title of PercentBar. <PercentBar title="Some title" />
value: String Value of PercentBar in percents. If no value passed, total value is a sum of child values. <PercentBar value="55.6" />
count: String Count of PercentBar in units. If no count passed, total count is a sum of child counts. <PercentBar count="55612" />
values: Array Child values. `<PercentBar values={[ {id: 1, percent: 4, count: 8, title:'Порча товара'},
                                                       {id: 7, percent: 8, count: 16, title:'Продажа китайцам'},
                                                             {id: 2, percent: 2, count: 4, title:'Хищение товара'},
                                                             {id: 3, percent: 1, count: 2, title:'Отбор контрольных образцов'},
                                                             {id: 4, percent: 1.5, count: 3, title:'Демонстрация на выставках и ярмарках'},
                                                             {id: 5, percent: 1.5, count: 3, title:'Иное'},
                                                           ]} />` |

Readme

Keywords

Package Sidebar

Install

npm i @crpt/react-percent-bar

Weekly Downloads

1

Version

1.0.11

License

MIT

Unpacked Size

148 kB

Total Files

75

Last publish

Collaborators

  • ivanvlado
  • solnik
  • fantik217