Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
changes to chart
ErikKaumk6b7aa2893ea1
diff --git a/apps/docs/src/components/Dashboard/Chart.tsx b/apps/docs/src/components/Dashboard/Chart.tsxindex 8a1af801e..ae54b0546 100644--- a/apps/docs/src/components/Dashboard/Chart.tsx+++ b/apps/docs/src/components/Dashboard/Chart.tsx@@ -64,8 +64,11 @@ export default function LineChart({ series, ...props }) {},},}}- isInteractive={false}+ isInteractive={true}+ tooltip={CustomTooltip}+ useMesh={true}enableArea={true}+ enableCrosshair={false}defs={[{id: 'gradientA',@@ -81,3 +84,9 @@ export default function LineChart({ series, ...props }) {</div>)}++const CustomTooltip = ({ point }) => (+ <div className='bg-[#F5F5F5] text-black text-xs py-1 px-2 rounded-lg border'>+ {point.data.y.toFixed(2)}+ </div>+)diff --git a/apps/docs/src/components/Dashboard/Usage.tsx b/apps/docs/src/components/Dashboard/Usage.tsxindex c89c2689f..95c448cac 100644--- a/apps/docs/src/components/Dashboard/Usage.tsx+++ b/apps/docs/src/components/Dashboard/Usage.tsx@@ -47,21 +47,27 @@ export const UsageContent = ({ currentApiKey }: { currentApiKey: string | null})</div>{vcpuData && ramData ? (- <>- <h2 className='font-bold pb-4 text-xl'>vCPU hours</h2>- <Card className="w-full md:w-2/3 bg-inherit/10 border border-white/20 mb-10">- <CardContent>- <LineChart className="aspect-[4/3]" series={vcpuData} type="vCPU" />- </CardContent>- </Card>+ <div className='flex flex-col 2xl:flex-row w-full space-y-4 2xl:space-y-0 2xl:space-x-4'>++ <div className='flex flex-col w-full md:w-2/3'>+ <h2 className='font-bold pb-4 text-xl'>vCPU hours</h2>+ <Card className="w-full bg-inherit/10 border border-white/20 mb-10">+ <CardContent>+ <LineChart className="aspect-[4/3]" series={vcpuData} type="vCPU" />+ </CardContent>+ </Card>+ </div>- <h2 className='font-bold pb-4 text-xl'>RAM hours</h2>- <Card className="w-full md:w-2/3 bg-inherit/10 border border-white/20 mb-10">- <CardContent>- <LineChart className="aspect-[4/3]" series={ramData} type="RAM" />- </CardContent>- </Card>- </>+ <div className='flex flex-col w-full md:w-2/3'>+ <h2 className='font-bold pb-4 text-xl'>RAM hours</h2>+ <Card className="w-full bg-inherit/10 border border-white/20 mb-10">+ <CardContent>+ <LineChart className="aspect-[4/3]" series={ramData} type="RAM" />+ </CardContent>+ </Card>+ </div>++ </div>) : (<div className='flex items-center justify-center w-2/3'><LoaderIcon className="animate-spin" />