open
open copied to clipboard
plotlyhs: Can't set color of marker
As far as I can tell, the only way to set colors for markers is by using the catColors
function, as the markercolor field is defined as so:
_markercolor :: Maybe (ListOrElem Value)
I'm not really sure how to create a Color
that will satisfy ListOrElem Value
.
How can I set the color of all markers using Color
, similar to how the (now deprecated) docs explains it?
@jeevcat just in case you are still waiting for an answer to this issue, if c :: Color
you can use something like defMarker & markercolor ?~ All (toJSON c))
. That said, I'm not sure why plotlyhs
doesn't use _markercolor :: Maybe (ListOrElem Color)
.