PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.2
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.2
4.0.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 All 149 releases
← All changes | js/render-chartjs.js +2 -3 3.10.133.10.2 View file →
@@ -132,10 +132,9 @@
132 132 label += ': ';
133 133 }
134 134 var format = context.dataset.format || '';
135 135 if ( format ) {
136 - var lastSuffix = numeral(context.formattedValue).format(format).replace(/[0-9]/g, '');
137 - label += context.formattedValue + lastSuffix;
136 + label += format_datum( context.formattedValue, format );
138 137 } else {
139 138 format = 'undefined' !== typeof context.chart.config._config.options.format ? context.chart.config._config.options.format : '';
140 139 if ( format ) {
141 140 label += format_datum( context.formattedValue, format );
@@ -467,9 +466,9 @@
467 466
468 467 switch(type) {
469 468 case 'number':
470 469 // numeral.js works on 0 instead of # so we just replace that in the ICU pattern set.
471 - format = format.replace(/#/g, '0').replace(/%/g, '');
470 + format = format.replace(/#/g, '0');
472 471 // we also replace all instance of '$' as that is more relevant for ticks.
473 472 if(removeDollar){
474 473 format = format.replace(/\$/g, '');
475 474 }