Skip to content
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

plotlyhs: Can't set color of marker #59

Open
jeevcat opened this issue Dec 10, 2017 · 1 comment
Open

plotlyhs: Can't set color of marker #59

jeevcat opened this issue Dec 10, 2017 · 1 comment

Comments

@jeevcat
Copy link

jeevcat commented Dec 10, 2017

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?

@adamgundry
Copy link
Contributor

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants