Commit 0a0cdc6c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Limit amount of contributors at graph to 100 persons

parent 58427749
...@@ -12,7 +12,8 @@ class window.ContributorsStatGraph ...@@ -12,7 +12,8 @@ class window.ContributorsStatGraph
@master_graph.draw() @master_graph.draw()
add_authors_graph: (author_data) -> add_authors_graph: (author_data) ->
@authors = [] @authors = []
_.each(author_data, (d) => limited_author_data = author_data.slice(0, 100)
_.each(limited_author_data, (d) =>
author_header = @create_author_header(d) author_header = @create_author_header(d)
$(".contributors-list").append(author_header) $(".contributors-list").append(author_header)
@authors[d.author] = author_graph = new ContributorsAuthorGraph(d.dates) @authors[d.author] = author_graph = new ContributorsAuthorGraph(d.dates)
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
type: "GET", type: "GET",
url: location.href, url: location.href,
complete: function() { complete: function() {
$(".stat-graph").fadeIn();
$(".loading-graph").hide(); $(".loading-graph").hide();
$(".stat-graph").show();
}, },
dataType: "script" dataType: "script"
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment