Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { LineChart as PfLineChart } from 'patternfly-react';

import { translate as __ } from '../../../../../react_app/common/I18n';
import { deprecate } from '../../../../common/DeprecationService';
import { getLineChartConfig } from '../../../../../services/charts/LineChartService';

import MessageBox from '../../MessageBox';
Expand All @@ -25,6 +26,14 @@ const LineChart = ({
onclick,
id,
}) => {
useEffect(() => {
deprecate(
'common/charts/LineChart (patternfly-react LineChart)',
'@patternfly/react-charts ChartLine / Chart',
'5.1'
);
}, []);

const chartConfig = getLineChartConfig({
data,
config,
Expand Down
Loading