Spaces:
Running
Running
chabane
commited on
Commit
·
a9fa82a
1
Parent(s):
4435f63
Update the UI and main
Browse files
static/scripts/data-visualisation.js
CHANGED
|
@@ -46,7 +46,8 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
| 46 |
showNotification("error", result.error);
|
| 47 |
return;
|
| 48 |
}
|
| 49 |
-
|
|
|
|
| 50 |
resultsSection.style.display = "block";
|
| 51 |
resultsSection.scrollIntoView({ behavior: "smooth" });
|
| 52 |
} catch (error) {
|
|
|
|
| 46 |
showNotification("error", result.error);
|
| 47 |
return;
|
| 48 |
}
|
| 49 |
+
const url = URL.createObjectURL(result.plot);
|
| 50 |
+
img_chart.src = url;
|
| 51 |
resultsSection.style.display = "block";
|
| 52 |
resultsSection.scrollIntoView({ behavior: "smooth" });
|
| 53 |
} catch (error) {
|