Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Class distribution bar chart: tooltip was clipped when hovering a chart with a single class.

### Security

## \[1.0.3\] - 2026-07-10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ export function buildEchartsOption(
tooltip: {
trigger: 'axis',
axisPointer: { type: 'shadow' },
// Render the tooltip in `document.body` instead of inside the chart's
// own overflow container. Vertical bars only set `overflow-x-auto`
// on that container, but per the CSS overflow spec an `overflow-x`
// other than `visible` forces the browser to also treat `overflow-y`
// as `auto` — so the container clips vertically too. With few bars
// (e.g. a single class) the bar nearly fills the height budget and
// the tooltip renders right at the top edge, getting clipped by that
// implicit vertical overflow. appendTo: 'body' escapes it entirely.
Comment thread
ikondrat marked this conversation as resolved.
Outdated
appendTo: 'body',
formatter: (params: { name: string; value: number }[]) => {
const [{ name, value }] = params;
const percent = totalCount > 0 ? ` (${formatPercent(value / totalCount)})` : '';
Expand Down
Loading