Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeSeries showLegend defaults to False #582

Open
Gnappuraz opened this issue May 4, 2023 · 0 comments
Open

TimeSeries showLegend defaults to False #582

Gnappuraz opened this issue May 4, 2023 · 0 comments

Comments

@Gnappuraz
Copy link

Gnappuraz commented May 4, 2023

What you expected to happen?

A TimeSeries object that has any of legendDisplayMode, legendPlacement, legendCalcs set, should show the legend panel automatically, or allow the flag to be set as ctor parameter.

What happened?

If any of the above is set, the legend becomes hidden.
Screenshot 2023-05-04 at 16 05 56

If manually enabled it will show the legend correctly set with all its attributes.
Screenshot 2023-05-04 at 16 06 11

How to reproduce it?

TimeSeries(
        title="some title",
        dataSource="any test datasource",
        targets="any test target",
        legendDisplayMode="table",
        legendPlacement="bottom",
        legendCalcs=["mean", "lastNotNull", "max"])

Adding

extraJson={
            "options": {
                "legend": {
                    "showLegend": True,
                }
            }
        }

as ctor param shows the legend correctly.

If confirmed I'll be happy to contribute with a PR to fix the issue.

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

No branches or pull requests

1 participant