From b50f85ba17cc5c1ed6160935cc382422db56e7d8 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Wed, 8 May 2013 05:32:45 +0200 Subject: [PATCH] Improved the pie charts of the HTML output. All authors with a workload less than one percent are now combined into the same slice of the pie chart. --- blame.py | 6 +++++- changes.py | 7 +++++-- html/html.header | 4 +++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/blame.py b/blame.py index 6c1e624..4d6eecd 100644 --- a/blame.py +++ b/blame.py @@ -189,7 +189,11 @@ class BlameOutput(Outputable): blame_xml += " series: {" blame_xml += " pie: {" blame_xml += " innerRadius: 0.4," - blame_xml += " show: true" + blame_xml += " show: true," + blame_xml += " combine: {" + blame_xml += " threshold: 0.01," + blame_xml += " label: \"Other Authors\"" + blame_xml += " }" blame_xml += " }" blame_xml += " }" blame_xml += " });" diff --git a/changes.py b/changes.py index 3d5deec..0566daf 100644 --- a/changes.py +++ b/changes.py @@ -200,13 +200,16 @@ class ChangesOutput(Outputable): changes_xml += ("          " + "") changes_xml += "
" - changes_xml += "