fix(dashboard): update comparison toggle in Chart component to default to false for improved user experience
This commit is contained in:
@@ -162,7 +162,7 @@ function formatAxisValue(value: number): string {
|
|||||||
|
|
||||||
export default function Chart({ data, prevData, stats, prevStats, interval }: ChartProps) {
|
export default function Chart({ data, prevData, stats, prevStats, interval }: ChartProps) {
|
||||||
const [metric, setMetric] = useState<MetricType>('visitors')
|
const [metric, setMetric] = useState<MetricType>('visitors')
|
||||||
const [showComparison, setShowComparison] = useState(true)
|
const [showComparison, setShowComparison] = useState(false)
|
||||||
const { resolvedTheme } = useTheme()
|
const { resolvedTheme } = useTheme()
|
||||||
|
|
||||||
const colors = useMemo(
|
const colors = useMemo(
|
||||||
|
|||||||
Reference in New Issue
Block a user