Custom Chart Widget

Hello, I'm trying to create a widget that loads dinamicaly a different number of charts, but I couldn´t get javascript code injected.

this should work, no?
-- nps-chart-widget.blade.php --

@push('scripts')
<script>
console.log('eiajeijaioe');
</script>
@endpush
Was this page helpful?