PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.8
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.8
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
← All changes | js/render-chartjs.js +3 -2 3.10.13.10.8 View file →
@@ -132,9 +132,10 @@
132 132 label += ': ';
133 133 }
134 134 var format = context.dataset.format || '';
135 135 if ( format ) {
136 - label += format_datum( context.formattedValue, format );
136 + var lastSuffix = numeral(context.formattedValue).format(format).replace(/[0-9]/g, '');
137 + label += context.formattedValue + lastSuffix;
137 138 } else {
138 139 format = 'undefined' !== typeof context.chart.config._config.options.format ? context.chart.config._config.options.format : '';
139 140 if ( format ) {
140 141 label += format_datum( context.formattedValue, format );
@@ -466,9 +467,9 @@
466 467
467 468 switch(type) {
468 469 case 'number':
469 470 // numeral.js works on 0 instead of # so we just replace that in the ICU pattern set.
470 - format = format.replace(/#/g, '0');
471 + format = format.replace(/#/g, '0').replace(/%/g, '');
471 472 // we also replace all instance of '$' as that is more relevant for ticks.
472 473 if(removeDollar){
473 474 format = format.replace(/\$/g, '');
474 475 }