Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Legend with "bottom" position has width limited by chartArea #794

Description

@php4fan

image

The graph above has these options:

options.legend = {
                    position: 'bottom'
                };
                options.chartArea = {
                    top: 12,
                    width: '85%',
                    left: '12%'
                }

Since the legend has position "bottom", I expect it to occupy the whole available width (with whatever margin/padding you deem reasonable, evenly distributed by default between left and right), regardless of the chartArea.

Having the width of a bottom-positioned legend be limited by the witdth of the chartArea (and the same would go for the height of a left- or right-positioned legend) could be a desirable option to have, but it cannot be the only available option. If you want to allow that, you should provide options for the legend area (such as width, height, left, top, etc) which currently don't exist.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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