[Pivot Table] Changing the colors of the heatmap

[Pivot Table] Changing the colors of the heatmap

  
Forge Component
(6)
Published on 2017-10-05 by Gonçalo Borrêga
6 votes
Published on 2017-10-05 by Gonçalo Borrêga

First of all thank you for the component.

I would like to implement a different color scheme in the Heat map.

So I've add this :

rendererOptions: {
                        heatmap: {
                            colorScaleGenerator: function(values) {
                                return d3.scale.linear()
                                    .domain([0, 50, 150])
                                    .range(['#66feff', '#ff0066', '#66ff33'])
                            }
                        }
                    }

Inside the pivot as documented by PivotJS. However it does not seem to do anything. Does anybody experience the same problems? I already added the d3Library before anyone asks.