Qilk-Sense-Chartjs
Qilk-Sense-Chartjs copied to clipboard
formatMeasure Function works incorrectly on negative numbers
Hi,
I noticed that when a chart has both negative and positive numbers, the negative numbers are missing their thousand separator.
I partially fixed it for those that are set to 'Auto' with this to the condition: "|| parseInt(e) < -999 "
// if (t.qHyperCube.qMeasureInfo[r].qIsAutoFormat) return parseInt(e) > 999 ? e.toString().replace(".", a).replace(/\B(?=(\d{3})+(?!\d))/g, n) : e.toString().replace(".", a); if (t.qHyperCube.qMeasureInfo[r].qIsAutoFormat) return parseInt(e) > 999 || parseInt(e) < -999 ? e.toString().replace(".", a).replace(/\B(?=(\d{3})+(?!\d))/g, n) : e.toString().replace(".", a);
Hi, I have fixed the formatting for negative values. Thank you for your cooperation!