Skip to content

Setting drawLegend to false on heatmap still adjusts margins to accommodate hard-coded legend width #421

@davereinhart

Description

@davereinhart

The heatmap has a drawLegend boolean and Accessor method, but setting it to false via the accessor still results in the same amount of space taken as when the legend is included. This seems to be happening in the render function where effectiveMargins are adjusted to account for the legend width.

This could possibly be addressed by calculating the legend width based on the SVG element's contents rather than relying on the constant value of 75 currently assigned to LEGEND_WIDTH, or by adjusting the effectiveMargins in refresh rather than render.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions