Chart js date range picker apply function

๐Ÿ‘:-1

I got a partial answer now I have to connect this date to my DB PostgreSQL

<script>
    $('.daterange').on('apply.daterangepicker', function add1(){
        let ab=[{% for item in values2 %}
            {{item}},
        {% endfor %}]
    mixedChart.data.datasets[2].data=ab;
         mixedChart.update();
           });
 </script>

I want to change the above code to start and end dates when I click on the start date or end date it should change dynamically at my backend if any suggestions or clues let me know plz same for the end date

Leave a comment