https://github.com/angeloschatzimparmpas/t-viSNE
Raw File
Tip revision: 8d87bd631867563401ff5081b7f1acaf4644b7d4 authored by Angelos Chatzimparmpas on 28 April 2020, 16:32:50 UTC
new
Tip revision: 8d87bd6
data_form_handler.js

function changeDataset(value) {

    var format = value.split("."); // Get the data set's format.

    if (format[value.split(".").length-1] != "csv") { // This is a function that handles a new file, which users can upload.
      d3.select("#data").select("input").remove();
      $("#data").html(''); // Print on the screen the classification label.
      d3.select("#data")
        .append("input")
         .attr("type", "file")
         .style("font-size", "10px")
         .on("change", function() {
          var file = d3.event.target.files[0];
          getfile(file);
        })
    } else {
      $("#data").html('Data sets'); // Print on the screen the classification label.
      d3.select("#data").select("input").remove(); // Remove the selection field.
    }

}
back to top