Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

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

Open
php4fan opened this issue Sep 8, 2022 · 0 comments
Open

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

php4fan opened this issue Sep 8, 2022 · 0 comments

Comments

@php4fan
Copy link

php4fan commented Sep 8, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant