-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 make legends? #346
Comments
Hello. What kind of legend do you want to have? You can use regular css & html stuff to display legend. |
Can you show me a simple example? |
Since you didn't specify, what exactly you need, I just put up a bacis sample. |
We might consider introducing some sort of callback with color & label being passed as arguments to make it easier to draw legend. @oesmith, what's your opinion on this? |
I'd rather users built their legends using their own data, as supplied to the I don't see much value in a callback that gives a user back the exact same data that they've already supplied to us. Does that make sense? |
Possible reasoning for callback:
|
@oesmith The callback should pass the colors and labels back to make building these on the fly in a dasboard-y way simpler. I can write a gist if you want something more detailed. |
thank you all. |
Thank you @sudodoki for your snippet. Very useful if the graphs are made to be printed. |
@sudodoki : I am in need of legend in Donut Charts. |
@shahriarhossain check this https://jsfiddle.net/x1q12so2/ |
@shahriarhossain I want same as you too. Anyone got solution? |
Because dima-sh has posted nearly the whole thing (thanks!), https://jsfiddle.net/h0fjm80n/ No more css. Also it shows the value right of the text. |
how about for Bar chart?? |
Hello, How can I change the size font of legend in line chats? |
@coolananth you can do it with bar charts this way: |
Hi there. Thanks for this project.
How can i make a legend for may Bar chart?
The text was updated successfully, but these errors were encountered: