Support discipline labels
Support display order for the Scimap circles Support custom tooltip Add % information on click action Add info text Add numerical information for mapped, total publications Set default map view to 554 Sub-Discipline Enable labels by default
This commit is contained in:
parent
589a5cf09a
commit
815ef7f26e
32 changed files with 429 additions and 51 deletions
16
productMods/js/visualization/mapofscience/NumberUtils.js
Normal file
16
productMods/js/visualization/mapofscience/NumberUtils.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
// Adapted from http://www.mredkj.com/javascript/numberFormat.html
|
||||
// format number to a better human readable text
|
||||
function addCommasToNumber(nStr) {
|
||||
nStr += '';
|
||||
var x = nStr.split('.');
|
||||
var x1 = x[0];
|
||||
var x2 = x.length > 1 ? '.' + x[1] : '';
|
||||
var rgx = /(\d+)(\d{3})/;
|
||||
|
||||
while (rgx.test(x1)) {
|
||||
x1 = x1.replace(rgx, '$1' + ',' + '$2');
|
||||
}
|
||||
|
||||
return x1 + x2;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue