Skip to content

Commit

Permalink
refactor(insights): remove unused chart property (#6806)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Apr 9, 2024
1 parent 5a5d909 commit 2b3516d
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const LineChartComponent: VFC<{
data: ChartData<'line', unknown>;
aspectRatio?: number;
cover?: ReactNode;
isLocalTooltip?: boolean;
overrideOptions?: ChartOptions<'line'>;
TooltipComponent?: ({
tooltip,
Expand All @@ -94,7 +93,6 @@ const LineChartComponent: VFC<{
data,
aspectRatio = 2.5,
cover,
isLocalTooltip,
overrideOptions,
TooltipComponent,
}) => {
Expand All @@ -109,7 +107,6 @@ const LineChartComponent: VFC<{
locationSettings,
setTooltip,
Boolean(cover),
isLocalTooltip,
),
...overrideOptions,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const createOptions = (
locationSettings: ILocationSettings,
setTooltip: React.Dispatch<React.SetStateAction<TooltipState | null>>,
isPlaceholder?: boolean,
localTooltip?: boolean,
) =>
({
responsive: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const FlagsProjectChart: VFC<IFlagsProjectChartProps> = ({
return (
<LineChart
data={notEnoughData ? placeholderData : data}
isLocalTooltip
overrideOptions={{
parsing: {
yAxisKey: 'total',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const MetricsSummaryChart: VFC<IMetricsSummaryChartProps> = ({
return (
<LineChart
data={notEnoughData ? placeholderData : data}
isLocalTooltip
TooltipComponent={MetricsSummaryTooltip}
overrideOptions={
notEnoughData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export const ProjectHealthChart: VFC<IProjectHealthChartProps> = ({
<LineChart
key={isAggregate ? 'aggregate' : 'project'}
data={data}
isLocalTooltip
TooltipComponent={isAggregate ? undefined : HealthTooltip}
overrideOptions={
notEnoughData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const TimeToProductionChart: VFC<ITimeToProductionChartProps> = ({
return (
<LineChart
data={notEnoughData ? placeholderData : data}
isLocalTooltip
TooltipComponent={TimeToProductionTooltip}
overrideOptions={
notEnoughData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const UsersPerProjectChart: VFC<IUsersPerProjectChartProps> = ({
return (
<LineChart
data={notEnoughData ? placeholderData : data}
isLocalTooltip
overrideOptions={{
parsing: {
yAxisKey: 'users',
Expand Down

0 comments on commit 2b3516d

Please sign in to comment.