We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ede77 commit 520fa6aCopy full SHA for 520fa6a
apps/webapp/app/components/primitives/charts/ChartBar.tsx
@@ -118,8 +118,9 @@ export function ChartBarRenderer({
118
}
119
120
// Get the x-axis ticks based on tooltip state
121
+ // Only hide middle ticks when zoom is enabled (to make room for zoom instructions)
122
const xAxisTicks =
- highlight.tooltipActive && data.length > 2
123
+ enableZoom && highlight.tooltipActive && data.length > 2
124
? [data[0]?.[dataKey], data[data.length - 1]?.[dataKey]]
125
: undefined;
126
0 commit comments