humangeo / leaflet-dvf

Leaflet Data Visualization Framework
MIT License
689 stars 153 forks source link

Styling attributes for markers and charts #129

Open aurelien-robineau opened 5 years ago

aurelien-robineau commented 5 years ago

Hi, I can't find a list of all possibles styling attributes possible for markers and charts. I guessed some of them, but I surely missed some of the possibilities. By the way the color attribute changes the border color on histrograms, but not on pie charts (I did not test on other charts). Maybe it is a bug ?

Thanks.

sfairgrieve commented 5 years ago

Some of the marker options are defined here: https://github.com/humangeo/leaflet-dvf/wiki/6.-Markers. In most cases, what's mentioned on the wiki is in addition to normal Leaflet Path styling options. The components of chart markers are just Path objects, so they accept all the same styling parameters that normal Leaflet path objects accept as well: https://leafletjs.com/reference-1.5.0.html#path. Hope this helps, but let me know if it doesn't.

The color thing may be a bug, and is worth investigating - thanks for pointing that out.

aurelien-robineau commented 5 years ago

It does help, thanks. I just didn't realise that I could actually use normal Leaflet styling options. I let this topic open so you can close it when you know wether the color is a bug or not.

valerio-bozzolan commented 2 years ago

@aurelien-robineau can you please mark as resolved if you have fixed? :) thank you so much!