margin fix, fit 3 digits prices

This commit is contained in:
Sam Hadow 2024-02-12 22:25:14 +01:00
parent c88044a260
commit c768da2417
2 changed files with 2 additions and 3 deletions

View File

@ -5,8 +5,8 @@ const height = 350;
const margin = {
top: 10,
right: height,
bottom: 30,
left: 30
bottom: 20,
left: 50
};
// get window width
const width = window.innerWidth - margin.right - margin.left -10;

View File

@ -7,7 +7,6 @@ function render_graphs(items, history, show_hidden) {
// Group the data by (uuid)
const nestedData = d3.group(history, d => d.uuid);
// Create a div for each graph
console.log(nestedData.size)
const graphDivs = d3.select("#graphs")
.selectAll(".graph-container")
.data(nestedData.keys())