Skip to content
Snippets Groups Projects
Commit bedabd0c authored by Christopher Pietsch's avatar Christopher Pietsch
Browse files

fixed malformed timeline

parent f48df73e
Branches
No related tags found
No related merge requests found
...@@ -721,6 +721,7 @@ function myListView() { ...@@ -721,6 +721,7 @@ function myListView() {
var timelineFontScale = d3.scale.linear() var timelineFontScale = d3.scale.linear()
.domain([40, 8]) .domain([40, 8])
.range([2, 10]) .range([2, 10])
.clamp(true)
var timelineScale = d3.scale.threshold() var timelineScale = d3.scale.threshold()
.domain([3, 10, 20]) .domain([3, 10, 20])
...@@ -732,7 +733,7 @@ function myListView() { ...@@ -732,7 +733,7 @@ function myListView() {
var fontSize = timelineFontScale(scale1) var fontSize = timelineFontScale(scale1)
// console.log(scale, fontSize) // console.log(scale1, fontSize, scale * (fontSize/2))
timeDomain.forEach(function(d) { timeDomain.forEach(function(d) {
d.pos = ((d.x - x1) * scale); d.pos = ((d.x - x1) * scale);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment