How to make stacked bar chart in Chartisan

860 views Asked by At

I have laravel application and i want to display a chart. I have install Laravel Chart and Chartisan/Chartjs. But i dont know how to configure stacked bar.

@section('customScript')
<script>
  const chart = new Chartisan({
    el: '#chart',
    url: "@chart('application_by_state_chart')",
    hooks: new ChartisanHooks()
        .colors(['#ECC94B', '#4299E1'])
        .responsive()
        .beginAtZero()
        .legend({ position: 'bottom' })
        .title('This is a sample chart using chartisan!')
   });
 </script>
 @endsection
1

There are 1 answers

0
Harizul On BEST ANSWER

Sorry for the vague question, actually i just want to make customization on my graph as i am using chartisan with chartjs plugin. I have go through the documentation once again and found out there is something called custom hooks. The link below is what im trying to do using custom hooks because chartisan documentation did not specify how to use custom hooks.

https://github.com/Chartisan/Chartisan/issues/7#issuecomment-774745067