10 Oct 2019 15:15
Any luck with this Craig? The problem is when the spread is less than 1 if that helps and i reckon the fix is below :)
uda-lightstreamer.js
within function determineDP(iValue, iMaxDP, bIncludeCommas, iMinDP)
I'd change this ...
if (bIncludeCommas == true ) {
iVal = iVal.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
}
to this ...
if (bIncludeCommas == true && iValue > 1) {
iVal = iVal.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
}
You might need to change this function in charts.js too.
Paul.