Adds a getScaleRatio method to Heatmap.