Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial commit #1668

Merged
merged 1 commit into from
Oct 22, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/NuGetGallery/Content/Site.css
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,14 @@ ul.pager li.next { padding-left: 10px; }
stroke-width: 1.5px;
}

.line-graph-dot {
fill: steelblue;
}

.line-graph-dot:hover {
fill: orange;
}

/* NuGet Badge */

.nuget-badge code {
Expand Down
13 changes: 13 additions & 0 deletions src/NuGetGallery/Scripts/statsgraphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,18 @@ var drawMonthlyDownloadsLineChart = function () {
.datum(data)
.attr("class", "line")
.attr("d", line);

var formatDownloads = d3.format(',');

svg.selectAll('.point')
.data(data)
.enter()
.append("svg:circle")
.attr("class", "line-graph-dot")
.attr("cx", function (d) { return xScale(d.month); })
.attr("cy", function (d) { return yScale(d.downloads); })
.attr("r", 5)
.append("title")
.text(function (d) { return formatDownloads(d.downloads); });
}