add volume to csv, fix - filename

This commit is contained in:
teh_coderer
2023-05-14 20:01:56 -04:00
parent 7a362a865f
commit 535a3fae7a
3 changed files with 6 additions and 3 deletions

View File

@@ -50,6 +50,8 @@ function App() {
title: "",
};
let filename = data.layout?.title?.text
.replace(/ -/g, "")
.replace(/-/g, "")
.replace(/<b>|<\/b>/g, "")
.replace(/ /g, "_");
let date = new Date().toISOString().slice(0, 10).replace(/-/g, "");

View File

@@ -147,7 +147,7 @@ export async function downloadCSV(
});
}
if (trace.type === "scatter") {
if (["scatter", "bar"].includes(trace.type)) {
if (columns.length === 0) {
columns.push(xaxis);
}
@@ -378,4 +378,5 @@ export async function downloadImage(
hidemodebar(false);
loading(false);
}
loading(false);
}

File diff suppressed because one or more lines are too long