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

How to set meaningful legend texts on a multiSeries chart #123

Open
lulingar opened this issue Nov 14, 2017 · 1 comment
Open

How to set meaningful legend texts on a multiSeries chart #123

lulingar opened this issue Nov 14, 2017 · 1 comment

Comments

@lulingar
Copy link

lulingar commented Nov 14, 2017

On the stacked bar chart demo the series legend shows meaningless names ("series_..."), as shown below:

image

I have tried to glean from the code how to make the popup and/or a dc.legend display the correct names for the series, but so far a way for that doesn't seem to exist at present.

@maulikit
Copy link

@lulingar, hey did you find any solution to this legend text? i am too facing the same problem using stackedchart example. however i can see immerse platform being able to display exact title in the legends as well as on hover of each stack drawn.

also using api docs, i tried using dc.legend().legendText() to set legends title, however i get error
Unhandled Rejection (ReferenceError): _legendText is not defined

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

2 participants