design(dashboard): adjust overview metric chart
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user