Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

remove legend

kruzhambus07fb371031ac
diff --git a/src/pages/Project/View/components/UserFlow.tsx b/src/pages/Project/View/components/UserFlow.tsx
index b2b621de9..ef348eeb0 100644
--- a/src/pages/Project/View/components/UserFlow.tsx
+++ b/src/pages/Project/View/components/UserFlow.tsx
@@ -105,7 +105,11 @@ const UserFlow = ({
// @ts-ignore
data={isReversed ? userFlowDescending : userFlowAscending}
margin={{
- top: 0, right: disableLegend ? 0 : 120, bottom: 0, left: 20,
+ top: 0,
+ // right: disableLegend ? 0 : 120,
+ right: 0,
+ bottom: 0,
+ left: 20,
}}
align='justify'
colors={{ scheme: 'nivo' }}
@@ -140,27 +144,27 @@ const UserFlow = ({
],
],
}}
- legends={!disableLegend ? [
- {
- anchor: 'bottom-right',
- direction: 'column',
- translateX: 100,
- itemWidth: 100,
- itemHeight: 14,
- itemDirection: 'right-to-left',
- itemsSpacing: 2,
- itemTextColor: '#999',
- symbolSize: 14,
- effects: [
- {
- on: 'hover',
- style: {
- itemTextColor: '#000',
- },
- },
- ],
- },
- ] : []}
+ // legends={!disableLegend ? [
+ // {
+ // anchor: 'bottom-right',
+ // direction: 'column',
+ // translateX: 100,
+ // itemWidth: 100,
+ // itemHeight: 14,
+ // itemDirection: 'right-to-left',
+ // itemsSpacing: 2,
+ // itemTextColor: '#999',
+ // symbolSize: 14,
+ // effects: [
+ // {
+ // on: 'hover',
+ // style: {
+ // itemTextColor: '#000',
+ // },
+ // },
+ // ],
+ // },
+ // ] : []}
/>
)
}