Skip to content

Commit f1bd89e

Browse files
committed
show axis
1 parent aa31b19 commit f1bd89e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dashboard/ai-analytics/src/app/components/SparkChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ import {
7575
colors={colors}
7676
className="h-28 w-full"
7777
showXAxis={true}
78-
showYAxis={false}
78+
showYAxis={true}
7979
showLegend={false}
8080
showGridLines={false}
8181
showAnimation={true}

dashboard/ai-analytics/src/app/components/TimeseriesChart.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default function TimeseriesChart({ data, filters, onFiltersChange }: Time
213213
</li>
214214
))}
215215
</ul>
216-
<div className="flex-1 min-h-0">
216+
<div className="flex-1 min-h-0 pb-6">
217217
<BarChart
218218
data={tab.data}
219219
index="date"
@@ -223,9 +223,10 @@ export default function TimeseriesChart({ data, filters, onFiltersChange }: Time
223223
showLegend={false}
224224
yAxisWidth={45}
225225
valueFormatter={valueFormatter}
226-
className="h-full mt-10 hidden md:block"
226+
className="h-[calc(100%-24px)] mt-10 hidden md:block"
227227
showTooltip={true}
228228
showAnimation={true}
229+
showXAxis={true}
229230
/>
230231
<BarChart
231232
data={tab.data}
@@ -236,9 +237,10 @@ export default function TimeseriesChart({ data, filters, onFiltersChange }: Time
236237
showLegend={false}
237238
showYAxis={false}
238239
valueFormatter={valueFormatter}
239-
className="h-full mt-6 md:hidden"
240+
className="h-[calc(100%-24px)] mt-6 md:hidden"
240241
showTooltip={true}
241242
showAnimation={true}
243+
showXAxis={true}
242244
/>
243245
</div>
244246
</TabPanel>

0 commit comments

Comments
 (0)