Spaces:
Build error
Build error
Upload components/RevenueChart.jsx with huggingface_hub
Browse files
components/RevenueChart.jsx
CHANGED
|
@@ -29,9 +29,9 @@ const data = [
|
|
| 29 |
function CustomTooltip({ active, payload, label }) {
|
| 30 |
if (active && payload && payload.length) {
|
| 31 |
return (
|
| 32 |
-
<div className="bg-white dark:bg-dark-surface p-3 border border-gray-200 dark:border-gray-600 rounded-lg shadow-
|
| 33 |
-
<p className="text-xs text-gray-500 dark:text-gray-400">{label}</p>
|
| 34 |
-
<p className="text-sm font-bold text-gray-900 dark:text-white">
|
| 35 |
${payload[0].value.toLocaleString()}
|
| 36 |
</p>
|
| 37 |
</div>
|
|
@@ -69,7 +69,7 @@ export default function RevenueChart() {
|
|
| 69 |
type="monotone"
|
| 70 |
dataKey="value"
|
| 71 |
stroke="#3b82f6"
|
| 72 |
-
strokeWidth={
|
| 73 |
fillOpacity={1}
|
| 74 |
fill="url(#colorValue)"
|
| 75 |
/>
|
|
|
|
| 29 |
function CustomTooltip({ active, payload, label }) {
|
| 30 |
if (active && payload && payload.length) {
|
| 31 |
return (
|
| 32 |
+
<div className="bg-white dark:bg-dark-surface p-3 border border-gray-200 dark:border-gray-600 rounded-lg shadow-xl">
|
| 33 |
+
<p className="text-xs text-gray-500 dark:text-gray-400 font-medium uppercase">{label}</p>
|
| 34 |
+
<p className="text-sm font-bold text-gray-900 dark:text-white text-lg">
|
| 35 |
${payload[0].value.toLocaleString()}
|
| 36 |
</p>
|
| 37 |
</div>
|
|
|
|
| 69 |
type="monotone"
|
| 70 |
dataKey="value"
|
| 71 |
stroke="#3b82f6"
|
| 72 |
+
strokeWidth={3}
|
| 73 |
fillOpacity={1}
|
| 74 |
fill="url(#colorValue)"
|
| 75 |
/>
|