UNPKG

@devinit/pdf-base

Version:
39 lines (38 loc) 1.36 kB
"use strict"; var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; exports.__esModule = true; var React = require("react"); var react_1 = require("@storybook/react"); var colors_1 = require("../../../theme/colors"); var _1 = require("."); var config = { circular: { label: 'country', value: 'value' }, legend: { showLegend: true, position: 'bottom', alignment: 'center' } }; var data = [ { country: '‌Burundi', value: 29030000, color: colors_1.pink }, { country: 'Kenya', value: 46050000, color: colors_1.blue }, { country: 'Tanzania', value: 53470000, color: colors_1.red }, { country: 'Tanzania', value: 53470000, color: colors_1.darkerRed }, { country: '‌Rwanda', value: 190000, color: colors_1.orange }, { country: '‌Uganda', value: 39030000, color: colors_1.purple } ]; var props = { config: config, data: data, height: '200px' }; react_1.storiesOf('Pie', module).add('Pie', function () { return (React.createElement("div", { style: { width: '30%', padding: '50px' } }, React.createElement(_1["default"], __assign({}, props)))); });