Skip to content

Vertical legend columns are not aligned #3387

Closed

Description

@amir-hadzic

Hi,

Please see the below screenshot of how the legend looks like when there are many legend items, and they wrap into two columns. Note how the columns are not aligned. The first item on the legend should not have top padding (or padding should be applied for first item of each column).

padding

Any suggestions on how to workaround this?

Edit: here's a jsfiddle as well: http://jsfiddle.net/advqnq89/

Activity

  1. etimberg commented on Sep 29, 2016

    @etimberg
    Member

    @amir-hadzic to fix this you would need to modify the legend draw code https://github.com/chartjs/Chart.js/blob/master/src/core/core.legend.js#L393-L409

    I'd be happy to look at PR for this

  2. etimberg commented on Nov 18, 2016

    @etimberg
    Member

    Done in #3569

  3. added this to the Version 2.5 milestone on Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions