                    link.setAttribute("download", database_name + "." + collection_name + "-" + new Date().getFullYear() + 
                                                    "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + ".csv");
                }

                document.body.appendChild(link);
                link.click();
                document.body.removeChild(link);
            }

            function updateRenderingParameters (graph_type) {
                plot_count = 0;
      