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">
|
<div className="card col-span-6 p-4">
|
||||||
<ReportChart
|
<ReportChart
|
||||||
key={selectedMetric.id}
|
key={selectedMetric.id}
|
||||||
options={{ hideID: true, maxDomain: selectedMetric.maxDomain }}
|
options={{
|
||||||
|
hideID: true,
|
||||||
|
maxDomain: selectedMetric.maxDomain,
|
||||||
|
aspectRatio: 0.2,
|
||||||
|
hideLegend: true,
|
||||||
|
}}
|
||||||
report={{
|
report={{
|
||||||
...selectedMetric,
|
...selectedMetric,
|
||||||
chartType: 'linear',
|
chartType: 'linear',
|
||||||
|
lineType: 'linear',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -66,7 +66,8 @@ export const useXAxisProps = (
|
|||||||
interval === 'auto' ? 'day' : interval
|
interval === 'auto' ? 'day' : interval
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
height: hide ? 0 : undefined,
|
height: hide ? 0 : 14,
|
||||||
|
tickSize: 10,
|
||||||
axisLine: false,
|
axisLine: false,
|
||||||
dataKey: 'timestamp',
|
dataKey: 'timestamp',
|
||||||
scale: 'utc',
|
scale: 'utc',
|
||||||
|
|||||||
Reference in New Issue
Block a user