@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
29 lines • 1.58 kB
JavaScript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
'use client';
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({ series = [], height = 500, xScaleType = 'linear', yScaleType = 'linear', detailPopoverSize = 'medium', statusType = 'finished', emphasizeBaselineAxis = true, ...props }) {
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, { ...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