lib/templates/html/uplift.html [22:48]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - type: 'line', data, options: { animation: false, responsive: true, plugins: { zoom: zoomOptions, datalabels: { display: function(context) { let num_visible = 0; for (let i =0 ; i < context.chart.data.datasets.length ; i++) { if (context.chart.isDatasetVisible(i)) { num_visible++; if (num_visible !== 1) { return false; } } } const index = context.dataIndex; const labelValue = context.chart.data.labels[index]; return (labelValue == 0.99 || labelValue==0.95 || Math.round(labelValue*100)%10 === 0) ? true : false; }, anchor: 'end', align: 'top', - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lib/templates/html/uplift.html [127:153]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - type: 'line', data, options: { animation: false, responsive: true, plugins: { zoom: zoomOptions, datalabels: { display: function(context) { let num_visible = 0; for (let i =0 ; i < context.chart.data.datasets.length ; i++) { if (context.chart.isDatasetVisible(i)) { num_visible++; if (num_visible !== 1) { return false; } } } const index = context.dataIndex; const labelValue = context.chart.data.labels[index]; return (labelValue == 0.99 || labelValue==0.95 || Math.round(labelValue*100)%10 === 0) ? true : false; }, anchor: 'end', align: 'top', - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -