mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Render correct tooltip label.
This commit is contained in:
parent
a5337a0734
commit
154b559315
2 changed files with 13 additions and 3 deletions
|
|
@ -25,8 +25,16 @@ export function WebsiteChart({
|
|||
|
||||
if (compare) {
|
||||
result['compare'] = {
|
||||
pageviews: result.pageviews.map(({ x }, i) => ({ x, y: compare.pageviews[i].y })),
|
||||
sessions: result.sessions.map(({ x }, i) => ({ x, y: compare.sessions[i].y })),
|
||||
pageviews: result.pageviews.map(({ x }, i) => ({
|
||||
x,
|
||||
y: compare.pageviews[i].y,
|
||||
d: compare.pageviews[i].x,
|
||||
})),
|
||||
sessions: result.sessions.map(({ x }, i) => ({
|
||||
x,
|
||||
y: compare.sessions[i].y,
|
||||
d: compare.pageviews[i].x,
|
||||
})),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue