susielu / d3-legend

A reusable d3 legend component.
http://d3-legend.susielu.com/
Apache License 2.0
727 stars 104 forks source link

Put the label next to the legend #35

Closed bruceliu2008 closed 5 years ago

bruceliu2008 commented 8 years ago

Hi, I am new on Javascript, may I know how to put the label next to the legend? I see all examples are putting the label under the legend in different ways.

Thank you very much. Bruce

susielu commented 8 years ago

Bruce,

I'll need to add a labelPosition property that would have "left", "right", "top", "bottom" as labeling options. But right now there is no easy way to do this with this module.

Thanks, Susie

bruceliu2008 commented 8 years ago

Hi Susie, Thank you very much. I am looking forward to it.

Have a nice day. Bruce

On Jul 30, 2016 07:59, "Susie" notifications@github.com wrote:

Bruce,

I'll need to add a labelPosition property that would have "left", "right", "top", "bottom" as labeling options. But right now there is no easy way to do this with this module.

Thanks, Susie

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/susielu/d3-legend/issues/35#issuecomment-236322199, or mute the thread https://github.com/notifications/unsubscribe-auth/ALvs8tM1JTgCXYFvTTbnU-0mirpoykK2ks5qapPPgaJpZM4JSqGC .

Rylai-Zihang commented 7 years ago

Hi Susie, I wonder if we can put all the legends(including their labels and text) in one row.Right now if I set 'orient' to 'horizontal' ,the text of the cell is under the label.

hanneskuettner commented 6 years ago

I have implemented the labelPosition in my current fork. I'll make a PR as soon as I have done further testing to verify that the default settings do not influence any current users and settings.

susielu commented 5 years ago

I will not be adding in this feature, unless someone wants to make a pull request for it, thanks!