'labels' => [
'formatter' => new \yii\web\JsExpression("
function() {
if (this.value >= 1000000) {
return (this.value / 1000000).toFixed(1) + 'm'; // Formato para millones
} else if (this.value >= 1000) {
return (this.value / 1000).toFixed(1) + 'k'; // Formato para miles
} else {
return this.value; // Valor normal
}
}
")
]