OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
design(dashboard): adjust overview metric chart
Carl-Gerhard Lindesvärd54132016ba05
diff --git a/apps/dashboard/src/components/overview/overview-metrics.tsx b/apps/dashboard/src/components/overview/overview-metrics.tsxindex 85a6bf448..67545a843 100644--- a/apps/dashboard/src/components/overview/overview-metrics.tsx+++ b/apps/dashboard/src/components/overview/overview-metrics.tsx@@ -220,10 +220,16 @@ export default function OverviewMetrics({ projectId }: OverviewMetricsProps) {<div className="card col-span-6 p-4"><ReportChartkey={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>diff --git a/apps/dashboard/src/components/report-chart/common/axis.tsx b/apps/dashboard/src/components/report-chart/common/axis.tsxindex 51f1c3663..96e49e135 100644--- a/apps/dashboard/src/components/report-chart/common/axis.tsx+++ b/apps/dashboard/src/components/report-chart/common/axis.tsx@@ -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',