lib/templates/html/cdf_uplift.html [22:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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*100)%10 === 0 ? true : false;
},
anchor: 'end',
align: 'top',
formatter: n => Math.round(n)+"%"
},
annotation: {
annotations: {
line: {
type: 'line',
yMin: 0,
yMax: 0,
borderWidth: 2,
borderColor: 'gray'
}
}
},
legend: {
display: true,
position: 'top',
},
title: {
display: true,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
lib/templates/html/cdf_uplift.html [124:168]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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*100)%10 === 0 ? true : false;
},
anchor: 'end',
align: 'top',
formatter: n => Math.round(n)+"%"
},
annotation: {
annotations: {
line: {
type: 'line',
yMin: 0,
yMax: 0,
borderWidth: 2,
borderColor: 'gray'
}
}
},
legend: {
display: true,
position: 'top',
},
title: {
display: true,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -