UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

30 lines 1.75 kB
import { __rest } from "tslib"; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import clsx from 'clsx'; import { getBaseProps } from '../internal/base-component'; import useBaseComponent from '../internal/hooks/use-base-component'; import { applyDisplayName } from '../internal/utils/apply-display-name'; import InternalMixedLineBarChart from '../mixed-line-bar-chart/internal'; import styles from './styles.css.js'; function LineChart(_a) { var { series = [], height = 500, xScaleType = 'linear', yScaleType = 'linear', detailPopoverSize = 'medium', statusType = 'finished', emphasizeBaselineAxis = true } = _a, props = __rest(_a, ["series", "height", "xScaleType", "yScaleType", "detailPopoverSize", "statusType", "emphasizeBaselineAxis"]); const baseComponentProps = useBaseComponent('LineChart', { props: { detailPopoverSize, emphasizeBaselineAxis, fitHeight: props.fitHeight, hideFilter: props.hideFilter, hideLegend: props.hideLegend, xScaleType, yScaleType, }, }); const baseProps = getBaseProps(props); const className = clsx(baseProps.className, styles.root); return (React.createElement(InternalMixedLineBarChart, Object.assign({}, props, baseComponentProps, { className: className, height: height, xScaleType: xScaleType, yScaleType: yScaleType, stackedBars: false, horizontalBars: false, series: series, detailPopoverSize: detailPopoverSize, statusType: statusType, emphasizeBaselineAxis: emphasizeBaselineAxis }))); } applyDisplayName(LineChart, 'LineChart'); export default LineChart; //# sourceMappingURL=index.js.map