@wavemaker/app-ng-runtime 11.5.1-rc.5426 → 11.5.1-rc.5428
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/components/chart/bundles/index.umd.js +6 -0
- app-ng-runtime/components/chart/esm2020/chart.utils.mjs +7 -1
- app-ng-runtime/components/chart/fesm2015/index.mjs +6 -0
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +6 -0
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +1 -1
|
@@ -463,6 +463,9 @@ const getDateFormatedData = (dateFormat, d) => {
|
|
|
463
463
|
* This is because it returns UTC time i.e. Coordinated Universal Time (UTC).
|
|
464
464
|
* To create date in local time use moment
|
|
465
465
|
*/
|
|
466
|
+
if (dateFormat == '%c') {
|
|
467
|
+
dateFormat = '%a %b %e %X %Y';
|
|
468
|
+
}
|
|
466
469
|
return d3.timeFormat(dateFormat)(new Date(moment(moment(d).format()).valueOf()));
|
|
467
470
|
};
|
|
468
471
|
// Formats the given value according to number format
|
|
@@ -477,6 +480,9 @@ const getNumberFormatedData = (numberFormat, d) => {
|
|
|
477
480
|
else if (numberFormat == '%') {
|
|
478
481
|
numberFormatter = d3.format('.2%');
|
|
479
482
|
}
|
|
483
|
+
else if (numberFormat == '.f') {
|
|
484
|
+
numberFormatter = d3.format('.2f');
|
|
485
|
+
}
|
|
480
486
|
else {
|
|
481
487
|
numberFormatter = d3.format(numberFormat);
|
|
482
488
|
}
|