mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-13 12:51:49 +00:00
add volume to csv, fix - filename
This commit is contained in:
2
frontend-components/plotly/src/App.tsx
vendored
2
frontend-components/plotly/src/App.tsx
vendored
@@ -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, "");
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
4
openbb_terminal/core/plots/plotly.html
vendored
4
openbb_terminal/core/plots/plotly.html
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user