ismms-himc / clustergrammer2

"Dimensionality-increasing" data visualization tool and interactive WebGL Jupyter widget built for single-cell data.
https://clustergrammer.readthedocs.io/case_studies.html
MIT License
116 stars 20 forks source link

Legend for Clustergrammer JS doesnt get updated on Defining Custom Tile Colors #84

Closed mayankmusaddi closed 4 years ago

mayankmusaddi commented 4 years ago

When the tile_colors field in the argument was set to a different color, the heatmap generated gets updated however the legend always shows the colors red and blue only as is evident in the image, clustergrammerColor

Ways to reproduce

var args = {
    root: chartid,
    network_data: data,
    tile_colors: ["#ED9124", "#00FF00"],
  };

cgm = Clustergrammer(args);

When using the above piece of code in a JS file to generate the heatmap, the tile colors gets updated however the legend remains the same.

mayankmusaddi commented 4 years ago

This issue is not pertaining to this repository. Hence I'm closing this issue here and would create it in the clustergrammer JS repository belonging to the MaayanLab. Apologies.

cornhundred commented 4 years ago

Thanks @mayankmusaddi