margin fix, fit 3 digits prices
This commit is contained in:
parent
c88044a260
commit
c768da2417
@ -5,8 +5,8 @@ const height = 350;
|
|||||||
const margin = {
|
const margin = {
|
||||||
top: 10,
|
top: 10,
|
||||||
right: height,
|
right: height,
|
||||||
bottom: 30,
|
bottom: 20,
|
||||||
left: 30
|
left: 50
|
||||||
};
|
};
|
||||||
// get window width
|
// get window width
|
||||||
const width = window.innerWidth - margin.right - margin.left -10;
|
const width = window.innerWidth - margin.right - margin.left -10;
|
||||||
|
@ -7,7 +7,6 @@ function render_graphs(items, history, show_hidden) {
|
|||||||
// Group the data by (uuid)
|
// Group the data by (uuid)
|
||||||
const nestedData = d3.group(history, d => d.uuid);
|
const nestedData = d3.group(history, d => d.uuid);
|
||||||
// Create a div for each graph
|
// Create a div for each graph
|
||||||
console.log(nestedData.size)
|
|
||||||
const graphDivs = d3.select("#graphs")
|
const graphDivs = d3.select("#graphs")
|
||||||
.selectAll(".graph-container")
|
.selectAll(".graph-container")
|
||||||
.data(nestedData.keys())
|
.data(nestedData.keys())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user