t-viSNE: Interactive Assessment and Interpretation of t-SNE Projections https://doi.org/10.1109/TVCG.2020.2986996
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
t-viSNE/js/data_form_handler.js

23 lines
834 B

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", 'calc(0.35em + 0.9vmin)')
.on("change", function() {
var file = d3.event.target.files[0];
getfile(file);
$("#data").html(file.name);
})
} else {
$("#data").html('Data sets'); // Print on the screen the classification label.
d3.select("#data").select("input").remove(); // Remove the selection field.
}
}