@datarailsshared/dr_renderer 1.2.179 → 1.2.180
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.
package/package.json
CHANGED
|
@@ -3280,9 +3280,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3280
3280
|
|
|
3281
3281
|
highchartsRenderer.formatFieldValue = function (field, value) {
|
|
3282
3282
|
let currentType = '';
|
|
3283
|
+
let format = field.format;
|
|
3283
3284
|
switch (field.type) {
|
|
3284
3285
|
case 'Date':
|
|
3285
3286
|
currentType = 'd';
|
|
3287
|
+
if (!format) {
|
|
3288
|
+
format = 'MM/DD/YYYY'
|
|
3289
|
+
}
|
|
3286
3290
|
break;
|
|
3287
3291
|
case 'Float':
|
|
3288
3292
|
case 'Integer':
|
|
@@ -3291,7 +3295,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3291
3295
|
default:
|
|
3292
3296
|
return value;
|
|
3293
3297
|
}
|
|
3294
|
-
const formattedValue = highchartsRenderer.formatValue(currentType,
|
|
3298
|
+
const formattedValue = highchartsRenderer.formatValue(currentType, format, value, null);
|
|
3295
3299
|
if (formattedValue && formattedValue.value === 'Invalid Date') {
|
|
3296
3300
|
formattedValue.value = value;
|
|
3297
3301
|
}
|