Commit fcaed7e8 authored by Caillat Michel's avatar Caillat Michel
Browse files

consider case where kpj is NaN for K value calculation on graph

parent 396be779
...@@ -1710,7 +1710,11 @@ ...@@ -1710,7 +1710,11 @@
}, },
tooltip: { tooltip: {
formatter: function () { formatter: function () {
return '( ' + this.x.toFixed(4) + ', ' + this.y.toFixed(4) + '), ' + Number(this.y * kpj ).toExponential(2) + " K"; let label = '( ' + this.x.toFixed(4) + ', ' + this.y.toFixed(4) + ') ';
if(!isNaN(kpj)){
label = label + ", " + Number(this.y * kpj ).toExponential(2) + " K";
}
return label;
} }
}, },
series: [ series: [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment