ohctech_p8/adminlte/bower_components/jvectormap/src/ordinal-scale.js
2024-10-16 19:18:52 +05:30

21 lines
352 B
JavaScript

jvm.OrdinalScale = function(scale){
this.scale = scale;
};
jvm.OrdinalScale.prototype.getValue = function(value){
return this.scale[value];
};
jvm.OrdinalScale.prototype.getTicks = function(){
var ticks = [],
key;
for (key in this.scale) {
ticks.push({
label: key,
value: this.scale[key]
});
}
return ticks;
};