Skip to content

Legend title does not appear in dx plot by #1001

@jnumainville

Description

@jnumainville

In px, when there is a "plot by" equivalent, the legend title is set. This is not being set in dx.

import plotly.express as px
import deephaven.plot.express as dx

df = px.data.tips()

dx_bar = dx.bar(df, x="size", y=["tip", "total_bill"])
px_bar = px.bar(df, x="size", y=["tip", "total_bill"])
Screenshot 2024-11-08 at 10 14 23 AM Screenshot 2024-11-08 at 10 14 41 AM

This is a minor bug on it's own, but it could be worth considering if we want to also expose a new arg legend_title in all plots when fixing this, as it would be mostly trivial to do in addition to the minor work necessary here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingplotly-expressInvolves plotly-express plugin

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions