Skip to content
Discussion options

You must be logged in to vote

Hi @A-Taqi ,

There is no built-in way for you to use those plugins. But you can create a custom Chart widget, based on ours. Here are some quick steps and pseudocode from the back of my head:


Solution A. Create a new blade file (eg. resources/views/vendor/backpack/ui/widgets/custom-chart.blade.php). Inside it, include our blade file, then at the end add a section to push any scripts or changes you want:

@include('backpack.pro::widgets.chart')

@push('after_scripts')
<script>
    // TODO: your custom code
</script>
@endpush

Then you can use your custom chart widget, instead of the one provided by PRO:

    Widget::add([
        'type'    => 'custom-chart',
        'wrapper' => ['class' => 'c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by taqillion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants