UNPKG

grommet

Version:

focus on the essential experience

68 lines (67 loc) 1.64 kB
"use strict"; exports.__esModule = true; exports["default"] = exports.ValueStyleChart = void 0; var _react = _interopRequireDefault(require("react")); var _grommet = require("grommet"); function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } var values = [{ value: [10, 20], thickness: 12, color: 'status-critical', opacity: 'medium' }, { value: [10, 30], thickness: 29, color: 'status-critical', opacity: true }, { value: [11, 37], thickness: 68, color: 'status-critical', opacity: 0.4 }, { 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' }]; var ValueStyleChart = exports.ValueStyleChart = function ValueStyleChart() { return ( /*#__PURE__*/ // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={grommet}> _react["default"].createElement(_grommet.Box, { align: "center", pad: "large", gap: "large" }, /*#__PURE__*/_react["default"].createElement(_grommet.Chart, { type: "point", point: "circle", values: values }), /*#__PURE__*/_react["default"].createElement(_grommet.Chart, { type: "bar", values: values })) // </Grommet> ); }; ValueStyleChart.storyName = 'Value style'; var _default = exports["default"] = { title: 'Visualizations/Chart/Value style' };