0.0.3-alpha.0 • Published 4 years ago
@hurumaptest/charts v0.0.3-alpha.0
Charts
This packages includes a library of core HURUmap charts.
Installation
Install the module
npm install @hurumaptest/charts --save
Usage
These components can be accessed by importing from the components
root directory:
/**
* HURUmap dependencies
*/
import { Card } from '@hurumaptest/components';
export default function MyVisual() {
return <Card
id="668"
type="hurumap"
geoId="country-KE"
showInsight
showStatVisual
definition={{
id: 668,
title: 'Contribution by principal donor',
subtitle: 'Development Assistance',
visual: {
type: 'column',
table: 'allDonors',
x: 'donor',
y: 'total',
typeProps: {
horizontal: true
},
queryAlias: 'v668'
},
stat: {
type: 'number',
subtitle: 'Development Assistance',
description: 'Donor Contribution',
unique: false,
aggregate: 'sum',
queryAlias: 'v668'
},
source: [],
description: []
}}
/>;
}
0.0.3-alpha.0
4 years ago