Closed existe-deja closed 7 years ago
Looks good, I just had one comment about the default format. Let me know when it's in the other two legend types and I'll take a look locally and update the docs. Thanks!
This looks good to me, tested it out on the docs and it worked well. Did you have any other changes you wanted to make?
I think we're good! It's on your hands now to build and update. By the way, it was my first open source contribution and I was very happy to do it.
@Lacroute exciting, congrats! It was great having your help to implement this feature. I'll move it in today and update the docs. Cheers!
You can see the tests to understand how it works. The basic idea:
locale
object in the legendlabelFormat
to use the locale's format. To do it I choose to use aspecifier
instead of theformat
functionlabelFormat
, by string or byd3.format
Let me know what to change. When it will be ok for you, I'll do the implementation for sizeLegend and symbolLegend too.