mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Check visibility performance optimization.
This commit is contained in:
parent
418793feaf
commit
cb7f267212
7 changed files with 172 additions and 67 deletions
|
|
@ -13,6 +13,7 @@ export default function WebsiteChart({
|
|||
websiteId,
|
||||
defaultDateRange = '7day',
|
||||
stickHeader = false,
|
||||
animate = true,
|
||||
onDateChange = () => {},
|
||||
}) {
|
||||
const [data, setData] = useState();
|
||||
|
|
@ -80,6 +81,7 @@ export default function WebsiteChart({
|
|||
websiteId={websiteId}
|
||||
data={{ pageviews, uniques }}
|
||||
unit={unit}
|
||||
animationDuration={animate ? 300 : 0}
|
||||
>
|
||||
<QuickButtons value={value} onChange={handleDateChange} />
|
||||
</PageviewsChart>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue