c3js / c3js/c3

Legend text overlaps and alignment is thrown off when font size is changed

Open
#1,460 4 comments 0 reactions 0 assignees View on GitHub
C-bug
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Can you add better handling of different font sizes for legend text? From what I can tell, the calculation for position of each legend item is based off of a fixed height/width or something. When I change the font size of the ".c3-legend-item text" the different legend items overlap each-other along the X axis and the height is not recalculated to vertically align the color-chip with the vertical center of the text.

Thanks and great project!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.