Skip to content

Commit

Permalink
change chart domain to last the whole year
Browse files Browse the repository at this point in the history
resolves: #162
  • Loading branch information
kjgarza committed Apr 8, 2020
1 parent 79770de commit 33b30b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/javascripts/usage_bar_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function setupCitations(data, yop, chartWidth) {
var startDate = diff <= 20 ? yopDate : maxStart;

var startTime = startDate;
var endTime = today;
var endTime = new Date(today.getFullYear(), 12, 0);
var domain = [startTime, endTime];
var length = (diff > 20 ? 20 : diff) + 0.5;
var firstLabel = formatYear(startDate);
Expand Down Expand Up @@ -123,7 +123,6 @@ function bar2Viz(data, div, count, format, displayMode, yop) {
} else {
setup = setupUsage(data, yop, chartWidth);
}

var x = d3.time.scale
.utc()
.domain(setup.domain)
Expand Down

0 comments on commit 33b30b4

Please sign in to comment.