Skip to content

Legend is not picking up the margin property #807

Description

@scottdickerson

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

If I right align the legend there is no padding between the legend and the report. If I manually try and set a margin on the legend it is ignored.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: http://jsfiddle.net/qbmg1567/).

http://jsfiddle.net/qbmg1567/512/

What is the expected behavior?

It should have at least a small bit of left padding or horizontal margin or let me manually override the margin without forcing me to fully replace the legend component

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

No, All versions of Rechart and on both firefox and chrome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions