Skip to content

Conversation

@netil
Copy link
Member

@netil netil commented Dec 9, 2025

Issue

#4066

Details

Updated the treemap label formatter to accept an additional parameter for tile size, allowing for more dynamic label rendering based on the width and height of the tiles. Updated documentation to reflect the new argument.

	treemap: {
		label: {
			format: function(value, ratio, id, size) {
				// size: {width, height} - tile dimension
				return `${id}\n${value}`;
			}
		}
	},

Updated the treemap label formatter to accept an additional parameter for tile size,
allowing for more dynamic label rendering based on the width and height of the tiles.
Updated documentation to reflect the new argument.

Close naver#4066
@netil netil self-assigned this Dec 9, 2025
@netil netil merged commit 4d5ce0b into naver:master Dec 9, 2025
9 checks passed
@coveralls
Copy link

Coverage Status

coverage: 94.145% (-0.002%) from 94.147%
when pulling bc102de on netil:treemapLabel#4067
into 4379e29 on naver:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants