1.0.0 • Published 2 years ago

@pcgnpm/bar-chart v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

#bar-chart

Usage

Simple bar chart with default currency format

<BarChart data={ { y: 445744, x: 1, xLabel: 'Previous Week', xSubLabel: 'MAY 1 - MAY 7', }, { y: 460121, x: 2, xLabel: 'Current Week', xSubLabel: 'MAY 8 - MAY 14', }, } width={360} height={360} trendColor="#CD6263" labelFormatType="currency" labelFormatOptions={{ symbol: '$', thousand: ',', precision: 0, format: '%s%v', }} />

Simple bar chart with default number format

<BarChart data={ { y: 445744, x: 1, xLabel: 'Previous Week', xSubLabel: 'MAY 1 - MAY 7', }, { y: 460121, x: 2, xLabel: 'Current Week', xSubLabel: 'MAY 8 - MAY 14', }, } width={360} height={360} trendColor="#CD6263" labelFormatType="number" labelFormatOptions={{ thousand: ',', precision: 0, }} />