reactochart icon indicating copy to clipboard operation
reactochart copied to clipboard

YAxisLabels should calculate margin top and margin bottom using alignmentBaseline

Open krissalvador27 opened this issue 5 years ago • 0 comments

Currently YAxisLabels calculates its margin top and margin bottom with textAnchor attribute. That doesn't make sense since textAnchor determines <text> alignment on the horizontal plane.

YAxisLabels should be taking into account alignmentBaseline to determine any vertical overhang.

Issue in screenshot below Screen Shot 2019-08-20 at 5 21 06 PM

The margin bottom should be adjusted to account for alignmentBaseline: hanging.

krissalvador27 avatar Aug 20 '19 21:08 krissalvador27