mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
refactor(insights): remove unused chart property (#6806)
This commit is contained in:
parent
5a5d909137
commit
2b3516dff1
@ -85,7 +85,6 @@ const LineChartComponent: VFC<{
|
||||
data: ChartData<'line', unknown>;
|
||||
aspectRatio?: number;
|
||||
cover?: ReactNode;
|
||||
isLocalTooltip?: boolean;
|
||||
overrideOptions?: ChartOptions<'line'>;
|
||||
TooltipComponent?: ({
|
||||
tooltip,
|
||||
@ -94,7 +93,6 @@ const LineChartComponent: VFC<{
|
||||
data,
|
||||
aspectRatio = 2.5,
|
||||
cover,
|
||||
isLocalTooltip,
|
||||
overrideOptions,
|
||||
TooltipComponent,
|
||||
}) => {
|
||||
@ -109,7 +107,6 @@ const LineChartComponent: VFC<{
|
||||
locationSettings,
|
||||
setTooltip,
|
||||
Boolean(cover),
|
||||
isLocalTooltip,
|
||||
),
|
||||
...overrideOptions,
|
||||
}),
|
||||
|
@ -9,7 +9,6 @@ export const createOptions = (
|
||||
locationSettings: ILocationSettings,
|
||||
setTooltip: React.Dispatch<React.SetStateAction<TooltipState | null>>,
|
||||
isPlaceholder?: boolean,
|
||||
localTooltip?: boolean,
|
||||
) =>
|
||||
({
|
||||
responsive: true,
|
||||
|
@ -31,7 +31,6 @@ export const FlagsProjectChart: VFC<IFlagsProjectChartProps> = ({
|
||||
return (
|
||||
<LineChart
|
||||
data={notEnoughData ? placeholderData : data}
|
||||
isLocalTooltip
|
||||
overrideOptions={{
|
||||
parsing: {
|
||||
yAxisKey: 'total',
|
||||
|
@ -63,7 +63,6 @@ export const MetricsSummaryChart: VFC<IMetricsSummaryChartProps> = ({
|
||||
return (
|
||||
<LineChart
|
||||
data={notEnoughData ? placeholderData : data}
|
||||
isLocalTooltip
|
||||
TooltipComponent={MetricsSummaryTooltip}
|
||||
overrideOptions={
|
||||
notEnoughData
|
||||
|
@ -93,7 +93,6 @@ export const ProjectHealthChart: VFC<IProjectHealthChartProps> = ({
|
||||
<LineChart
|
||||
key={isAggregate ? 'aggregate' : 'project'}
|
||||
data={data}
|
||||
isLocalTooltip
|
||||
TooltipComponent={isAggregate ? undefined : HealthTooltip}
|
||||
overrideOptions={
|
||||
notEnoughData
|
||||
|
@ -63,7 +63,6 @@ export const TimeToProductionChart: VFC<ITimeToProductionChartProps> = ({
|
||||
return (
|
||||
<LineChart
|
||||
data={notEnoughData ? placeholderData : data}
|
||||
isLocalTooltip
|
||||
TooltipComponent={TimeToProductionTooltip}
|
||||
overrideOptions={
|
||||
notEnoughData
|
||||
|
@ -31,7 +31,6 @@ export const UsersPerProjectChart: VFC<IUsersPerProjectChartProps> = ({
|
||||
return (
|
||||
<LineChart
|
||||
data={notEnoughData ? placeholderData : data}
|
||||
isLocalTooltip
|
||||
overrideOptions={{
|
||||
parsing: {
|
||||
yAxisKey: 'users',
|
||||
|
Loading…
Reference in New Issue
Block a user