-
+
- | Product Category |
- Quantity |
+ Product Category |
+ Quantity |
{potential.map((p: any, idx: number) => {
if (!p.product_category && !p.quantity) return null;
return (
-
- | {p.product_category ? String(p.product_category) : '-'} |
- {p.quantity ? String(p.quantity) : '0'} |
+
+ | {p.product_category ? String(p.product_category) : '-'} |
+ {p.quantity ? String(p.quantity) : '0'} |
);
})}
-
- | Total |
- {totalPotential} |
+
+ | Total |
+ {totalPotential} |
diff --git a/src/components/reusable/AnalyticsChart.tsx b/src/components/reusable/AnalyticsChart.tsx
index 0f3242e..66089bc 100644
--- a/src/components/reusable/AnalyticsChart.tsx
+++ b/src/components/reusable/AnalyticsChart.tsx
@@ -126,20 +126,21 @@ export function AnalyticsChart({ data, gridCols }: AnalyticsChartProps) {
interval={0}
dy={10}
dx={-5}
- height={70}
+ height={90}
/>
{hasSeries &&
}
{seriesKeys.map((key, i) => {
@@ -189,7 +190,7 @@ export function AnalyticsChart({ data, gridCols }: AnalyticsChartProps) {
};
return (
-
+
100 ? 'overflow-x-auto scrollbar-slim' : ''}`}>
{chartType === 5 ? (
@@ -215,7 +216,7 @@ export function AnalyticsChart({ data, gridCols }: AnalyticsChartProps) {
) : (
-
100 ? `${minChartWidth}px` : '100%', height: '100%' }}>
+
100 ? `${minChartWidth}px` : '100%', height: '100%' }}>
{chartType === 3 || chartType === 4 ? (
@@ -223,6 +224,7 @@ export function AnalyticsChart({ data, gridCols }: AnalyticsChartProps) {
contentStyle={{ borderRadius: '8px', border: '1px solid #E2E8F0', boxShadow: '0 4px 6px -1px rgb(0 0 0 / 0.1)', fontSize: '14px', fontFamily: 'inherit' }}
itemStyle={{ color: '#0F172A', fontWeight: '500' }}
wrapperStyle={{ zIndex: 1000 }}
+ allowEscapeViewBox={{ x: true, y: true }}
/>
) : chartType === 1 ? (
-
+
{renderChartContent()}
) : chartType === 2 ? (
-
+
{renderChartContent()}
) : (
-
+
{renderChartContent()}
)}