Skip to content

Commit

Permalink
make ticks larger, remove horizontal lines, dim dark there color
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Aug 16, 2024
1 parent 656d139 commit 1e885d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/BarGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function BarGraph({ title, chartData, chartConfig, info }: {
const { isDarkTheme } = useTheme();
return (
<div className="flex justify-center text=#1E1E1E] my-8">
<div className="border border-gray-300 rounded-xl w-11/12 flex flex-col gap-6">
<div className="border border-gray-700 rounded-xl w-11/12 flex flex-col gap-6">
<h1 className="border-b p-4">
<img className="inline mr-2" src={GraphIcon} />
<span className="text-sm">
Expand All @@ -30,13 +30,13 @@ export function BarGraph({ title, chartData, chartConfig, info }: {
</h1>
<ChartContainer config={chartConfig} className="max-h-[200px] w-full mx-1">
<BarChart accessibilityLayer data={chartData}>
<CartesianGrid vertical={false} />
<CartesianGrid vertical={false} horizontal={false}/>
<XAxis
dataKey="inference"
tickLine={false}
tickMargin={10}
axisLine={false}
tickFormatter={(value) => value.slice(0, 3)}
tickFormatter={(value) => value.slice(0, 30)}
/>
<ChartTooltip content={<ChartTooltipContent />} />
<Bar dataKey="ingestPrice" fill={isDarkTheme ? "#2662D9" : "#2A9D90"} radius={4} />
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/LLMPriceCompass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ const csvPath = "https://raw.githubusercontent.com/arc53/llm-price-compass/main/

const chartConfig = {
ingestPrice: {
label: "Ingest price"
label: "Ingest"
},
outputPrice: {
label: "Output price"
label: "Output"
}
}
const LLMPriceCompass = () => {
Expand Down

0 comments on commit 1e885d2

Please sign in to comment.