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>;
|
data: ChartData<'line', unknown>;
|
||||||
aspectRatio?: number;
|
aspectRatio?: number;
|
||||||
cover?: ReactNode;
|
cover?: ReactNode;
|
||||||
isLocalTooltip?: boolean;
|
|
||||||
overrideOptions?: ChartOptions<'line'>;
|
overrideOptions?: ChartOptions<'line'>;
|
||||||
TooltipComponent?: ({
|
TooltipComponent?: ({
|
||||||
tooltip,
|
tooltip,
|
||||||
@ -94,7 +93,6 @@ const LineChartComponent: VFC<{
|
|||||||
data,
|
data,
|
||||||
aspectRatio = 2.5,
|
aspectRatio = 2.5,
|
||||||
cover,
|
cover,
|
||||||
isLocalTooltip,
|
|
||||||
overrideOptions,
|
overrideOptions,
|
||||||
TooltipComponent,
|
TooltipComponent,
|
||||||
}) => {
|
}) => {
|
||||||
@ -109,7 +107,6 @@ const LineChartComponent: VFC<{
|
|||||||
locationSettings,
|
locationSettings,
|
||||||
setTooltip,
|
setTooltip,
|
||||||
Boolean(cover),
|
Boolean(cover),
|
||||||
isLocalTooltip,
|
|
||||||
),
|
),
|
||||||
...overrideOptions,
|
...overrideOptions,
|
||||||
}),
|
}),
|
||||||
|
@ -9,7 +9,6 @@ export const createOptions = (
|
|||||||
locationSettings: ILocationSettings,
|
locationSettings: ILocationSettings,
|
||||||
setTooltip: React.Dispatch<React.SetStateAction<TooltipState | null>>,
|
setTooltip: React.Dispatch<React.SetStateAction<TooltipState | null>>,
|
||||||
isPlaceholder?: boolean,
|
isPlaceholder?: boolean,
|
||||||
localTooltip?: boolean,
|
|
||||||
) =>
|
) =>
|
||||||
({
|
({
|
||||||
responsive: true,
|
responsive: true,
|
||||||
|
@ -31,7 +31,6 @@ export const FlagsProjectChart: VFC<IFlagsProjectChartProps> = ({
|
|||||||
return (
|
return (
|
||||||
<LineChart
|
<LineChart
|
||||||
data={notEnoughData ? placeholderData : data}
|
data={notEnoughData ? placeholderData : data}
|
||||||
isLocalTooltip
|
|
||||||
overrideOptions={{
|
overrideOptions={{
|
||||||
parsing: {
|
parsing: {
|
||||||
yAxisKey: 'total',
|
yAxisKey: 'total',
|
||||||
|
@ -63,7 +63,6 @@ export const MetricsSummaryChart: VFC<IMetricsSummaryChartProps> = ({
|
|||||||
return (
|
return (
|
||||||
<LineChart
|
<LineChart
|
||||||
data={notEnoughData ? placeholderData : data}
|
data={notEnoughData ? placeholderData : data}
|
||||||
isLocalTooltip
|
|
||||||
TooltipComponent={MetricsSummaryTooltip}
|
TooltipComponent={MetricsSummaryTooltip}
|
||||||
overrideOptions={
|
overrideOptions={
|
||||||
notEnoughData
|
notEnoughData
|
||||||
|
@ -93,7 +93,6 @@ export const ProjectHealthChart: VFC<IProjectHealthChartProps> = ({
|
|||||||
<LineChart
|
<LineChart
|
||||||
key={isAggregate ? 'aggregate' : 'project'}
|
key={isAggregate ? 'aggregate' : 'project'}
|
||||||
data={data}
|
data={data}
|
||||||
isLocalTooltip
|
|
||||||
TooltipComponent={isAggregate ? undefined : HealthTooltip}
|
TooltipComponent={isAggregate ? undefined : HealthTooltip}
|
||||||
overrideOptions={
|
overrideOptions={
|
||||||
notEnoughData
|
notEnoughData
|
||||||
|
@ -63,7 +63,6 @@ export const TimeToProductionChart: VFC<ITimeToProductionChartProps> = ({
|
|||||||
return (
|
return (
|
||||||
<LineChart
|
<LineChart
|
||||||
data={notEnoughData ? placeholderData : data}
|
data={notEnoughData ? placeholderData : data}
|
||||||
isLocalTooltip
|
|
||||||
TooltipComponent={TimeToProductionTooltip}
|
TooltipComponent={TimeToProductionTooltip}
|
||||||
overrideOptions={
|
overrideOptions={
|
||||||
notEnoughData
|
notEnoughData
|
||||||
|
@ -31,7 +31,6 @@ export const UsersPerProjectChart: VFC<IUsersPerProjectChartProps> = ({
|
|||||||
return (
|
return (
|
||||||
<LineChart
|
<LineChart
|
||||||
data={notEnoughData ? placeholderData : data}
|
data={notEnoughData ? placeholderData : data}
|
||||||
isLocalTooltip
|
|
||||||
overrideOptions={{
|
overrideOptions={{
|
||||||
parsing: {
|
parsing: {
|
||||||
yAxisKey: 'users',
|
yAxisKey: 'users',
|
||||||
|
Loading…
Reference in New Issue
Block a user