design(dashboard): adjust overview metric chart

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-12 10:28:45 +02:00
parent 558761ca9d
commit 54132016ba
2 changed files with 9 additions and 2 deletions

View File

@@ -220,10 +220,16 @@ export default function OverviewMetrics({ projectId }: OverviewMetricsProps) {
<div className="card col-span-6 p-4">
<ReportChart
key={selectedMetric.id}
options={{ hideID: true, maxDomain: selectedMetric.maxDomain }}
options={{
hideID: true,
maxDomain: selectedMetric.maxDomain,
aspectRatio: 0.2,
hideLegend: true,
}}
report={{
...selectedMetric,
chartType: 'linear',
lineType: 'linear',
}}
/>
</div>

View File

@@ -66,7 +66,8 @@ export const useXAxisProps = (
interval === 'auto' ? 'day' : interval
);
return {
height: hide ? 0 : undefined,
height: hide ? 0 : 14,
tickSize: 10,
axisLine: false,
dataKey: 'timestamp',
scale: 'utc',