I am currently using a DateRangePicker in combination with some radio-buttons to display a chart. The problem is that I am using PHP and therefore the page has to be reloaded every time I change the dates.
I tried with AJAX but had some struggle to recalculate the entire canvas again and to overwrite the container with the ‘old’ canvas.
My idea with AJAX was to create a 2nd document which calls a snippet that is only used to calculate the entire canvas in PHP with the results of the SQL query. But how do I get that result to the initial document?
Here’s a gif of how it currently looks.
Thanks in advance.