Merge pull request #5321 from pratu16x7/heatmap
handle Math.max() for and empty array
This commit is contained in:
commit
cf4b17484a
1 changed files with 1 additions and 0 deletions
|
|
@ -2895,6 +2895,7 @@ function scale(val, yAxis) {
|
|||
function calcDistribution(values, distributionSize) {
|
||||
// Assume non-negative values,
|
||||
// implying distribution minimum at zero
|
||||
if(!values.length) values = [0];
|
||||
|
||||
var dataMaxValue = Math.max.apply(Math, toConsumableArray(values));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue