Unsupported chart type.
;
+ }
+ };
+
+ if (!!props.chatId) {
+ return (
+
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx
index 902409e4977..c0eb5bf4cca 100644
--- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx
+++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx
@@ -6,6 +6,7 @@ import ManageWorkspace from "../../../Modals/MangeWorkspace";
import { ArrowDown } from "@phosphor-icons/react";
import debounce from "lodash.debounce";
import useUser from "@/hooks/useUser";
+import Chartable from "./Chartable";
export default function ChatHistory({ history = [], workspace, sendCommand }) {
const { user } = useUser();
@@ -133,6 +134,12 @@ export default function ChatHistory({ history = [], workspace, sendCommand }) {
return
;
}
+ if (props.type === "rechartVisualize" && !!props.content) {
+ return (
+
+ );
+ }
+
if (isLastBotReply && props.animate) {
return (
+
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 9241d6184cf..e5066f6792e 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -679,3 +679,16 @@ does not extend the close button beyond the viewport. */
.white-scrollbar::-webkit-scrollbar-thumb:hover {
background-color: #cccccc;
}
+
+/* Recharts rendering styles */
+.recharts-text > * {
+ fill: #fff;
+}
+
+.recharts-legend-wrapper {
+ margin-bottom: 10px;
+}
+
+.text-tremor-content {
+ padding-bottom: 10px;
+}
diff --git a/frontend/src/pages/WorkspaceSettings/AgentConfig/index.jsx b/frontend/src/pages/WorkspaceSettings/AgentConfig/index.jsx
index c5ba61f273a..c96cc12469b 100644
--- a/frontend/src/pages/WorkspaceSettings/AgentConfig/index.jsx
+++ b/frontend/src/pages/WorkspaceSettings/AgentConfig/index.jsx
@@ -170,7 +170,7 @@ function AvailableAgentSkills({ skills, settings, toggleAgentSkill }) {
disabled={true}
/>