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

custom matrix tile color scheme #33

Closed
cornhundred opened this issue Aug 2, 2019 · 2 comments
Closed

custom matrix tile color scheme #33

cornhundred opened this issue Aug 2, 2019 · 2 comments

Comments

@cornhundred
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I want to be able to change the color scheme - currently it is only red/blue for positive/negative values, respectively

Describe the solution you'd like
I would like to be able to pass in two colors in the arguments JSON (e.g. named colors or hexcode) and have those override the positive/negative colors.

Additional context
This issue is necessary for resolving this issue in Clustergrammer2 ismms-himc/clustergrammer2#39

@chenmengyu
Copy link

I also have this problem.

@cornhundred
Copy link
Contributor Author

This feature has been added as of Clustergrammer-GL version 0.16.0. The matrix colors can be defined in the visualization JSON network object

      // set matrix colors
      network.matrix_colors = {}
      network.matrix_colors.pos = 'red'
      network.matrix_colors.neg = 'blue'

@chenmengyu

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