UNPKG

@dotconnor/grommet

Version:

focus on the essential experience

59 lines 1.25 kB
import React from 'react'; import { Grommet, Box, Chart } from 'grommet'; import { grommet } from 'grommet/themes'; var values = [{ value: [10, 20], thickness: 12, color: 'status-critical', opacity: 'medium' }, { value: [10, 30], thickness: 29, color: 'status-critical', opacity: 'medium' }, { value: [11, 37], thickness: 68, color: 'status-critical', opacity: 'medium' }, { value: [13, 10], thickness: 'small', color: 'status-critical', opacity: 'medium' }, { value: [20, 30], thickness: 'small', color: 'status-ok' }, { value: [22, 5], thickness: 'medium', color: 'status-ok' }, { value: [27, 42], thickness: 'large', color: 'status-ok' }, { value: [30, 15], thickness: 'large', color: 'status-warning' }]; export var ValueStyleChart = function ValueStyleChart() { return /*#__PURE__*/React.createElement(Grommet, { theme: grommet }, /*#__PURE__*/React.createElement(Box, { align: "center", pad: "large", gap: "large" }, /*#__PURE__*/React.createElement(Chart, { type: "point", point: "circle", values: values }), /*#__PURE__*/React.createElement(Chart, { type: "bar", values: values }))); }; ValueStyleChart.story = { name: 'Value style' };