codigo para arreglar graficos hightchart del sistema indicadores sig

PHOTO EMBED

Tue Jan 14 2025 13:28:46 GMT+0000 (Coordinated Universal Time)

Saved by @jrg_300i #undefined

'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
                        }
                    }
                ")
            ]
content_copyCOPY