Skip to content

Commit

Permalink
removed chartconfig as not used anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Granello committed Jan 17, 2025
1 parent 4716bd9 commit 6ccb1b7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/components/graphs/TenureComparisonBarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import React from "react";
import { Bar, BarChart, CartesianGrid, XAxis, LabelList } from "recharts";
import { Card, CardContent, CardHeader } from "@/components/ui/card";
import {
ChartConfig,
ChartContainer,
ChartLegend,
ChartLegendContent,
Expand All @@ -13,17 +12,6 @@ import {
} from "@/components/ui/chart";
import { formatValue } from "@/app/lib/format";

const chartConfig = {
freehold: {
label: "Freehold",
color: "rgb(var(--freehold-land-color-rgb))",
},
privateRent: {
label: "Private Rent",
color: "rgb(var(--private-rent-color-rgb))",
},
} satisfies ChartConfig;

// Define type for DataInput
type DataInput = {
category: string;
Expand Down Expand Up @@ -87,7 +75,7 @@ const TenureComparisonBarChart: React.FC<StackedBarChartProps> = ({ data }) => {
<Card>
<CardHeader></CardHeader>
<CardContent>
<ChartContainer config={chartConfig}>
<ChartContainer config={{}}>
<BarChart accessibilityLayer data={chartData}>
<CartesianGrid vertical={false} />
<XAxis
Expand Down

0 comments on commit 6ccb1b7

Please sign in to comment.