UNPKG
jqvmap
Version:
latest (1.5.1)
1.5.1
1.5.0
1.0.1
1.0.0
jQuery Vector Map Library
jqvmap.com
manifestinteractive/jqvmap
jqvmap
/
src
/
ColorScale
/
setMax.js
9 lines
(8 loc)
•
205 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
ColorScale.prototype.setMax = function (max) {
this
.clearMaxValue = max;
if
(typeof
this
.normalize ===
'function'
) {
this
.maxValue =
this
.normalize(max); }
else
{
this
.maxValue = max; } };