Skip to content

Commit 62fbf19

Browse files
authored
refactor(appkit-ui): remove unused recharts ChartContainer, drop recharts dep (#473)
1 parent cec6976 commit 62fbf19

16 files changed

Lines changed: 18 additions & 1129 deletions

File tree

docs/docs/api/appkit-ui/ui/ChartContainer.mdx

Lines changed: 0 additions & 370 deletions
This file was deleted.

docs/docs/api/appkit-ui/ui/ContextMenu.mdx

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/api/appkit-ui/ui/DropdownMenu.mdx

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/api/appkit-ui/ui/HoverCard.mdx

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/api/appkit-ui/ui/Menubar.mdx

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/api/appkit-ui/ui/Popover.mdx

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/api/appkit-ui/ui/Select.mdx

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/api/appkit-ui/ui/Tooltip.mdx

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/components/DocExample/examples.gen.ts

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,6 @@ export default function DonutChartExample() {
769769
770770
import * as React from "react"
771771
import { Minus, Plus } from "lucide-react"
772-
import { Bar, BarChart, ResponsiveContainer } from "recharts"
773772
774773
import {
775774
Button,
@@ -783,48 +782,6 @@ import {
783782
DrawerTrigger,
784783
} from "@databricks/appkit-ui/react"
785784
786-
const data = [
787-
{
788-
goal: 400,
789-
},
790-
{
791-
goal: 300,
792-
},
793-
{
794-
goal: 200,
795-
},
796-
{
797-
goal: 300,
798-
},
799-
{
800-
goal: 200,
801-
},
802-
{
803-
goal: 278,
804-
},
805-
{
806-
goal: 189,
807-
},
808-
{
809-
goal: 239,
810-
},
811-
{
812-
goal: 300,
813-
},
814-
{
815-
goal: 200,
816-
},
817-
{
818-
goal: 278,
819-
},
820-
{
821-
goal: 189,
822-
},
823-
{
824-
goal: 349,
825-
},
826-
]
827-
828785
export default function DrawerExample() {
829786
const [goal, setGoal] = React.useState(350)
830787
@@ -874,19 +831,6 @@ export default function DrawerExample() {
874831
<span className="sr-only">Increase</span>
875832
</Button>
876833
</div>
877-
<div className="mt-3 h-[120px]">
878-
<ResponsiveContainer width="100%" height="100%">
879-
<BarChart data={data}>
880-
<Bar
881-
dataKey="goal"
882-
style={{
883-
fill: "hsl(var(--foreground))",
884-
opacity: 0.9,
885-
}}
886-
/>
887-
</BarChart>
888-
</ResponsiveContainer>
889-
</div>
890834
</div>
891835
<DrawerFooter>
892836
<Button>Submit</Button>

0 commit comments

Comments
 (0)