Dc.js Heatmap Colour Range Not Getting Updated After Filter Applied
I'm using dc.js to create a dashboard, the dataset contains 3 types of reading from 1 year in a 24 hour basis. (in the example fiddle, i only use 15 days just for demonstration pur
Solution 1:
This is by design, because the color mapping may have some absolute meaning.
So if you want the domain to adjust and show the full range of colors for each new set of values, you need to calculateColorDomain()
each time the chart is redrawn:
.on('preRedraw', function() {
dayAndTimeChart.calculateColorDomain();
})
Working fork of your fiddle: http://jsfiddle.net/gordonwoodhull/w1mzwv8d/2/
Post a Comment for "Dc.js Heatmap Colour Range Not Getting Updated After Filter Applied"