mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-09-29 02:41:30 +02:00
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.
This commit is contained in:
parent
0c6358324d
commit
b50f85ba17
6
blame.py
6
blame.py
@ -189,7 +189,11 @@ class BlameOutput(Outputable):
|
|||||||
blame_xml += " series: {"
|
blame_xml += " series: {"
|
||||||
blame_xml += " pie: {"
|
blame_xml += " pie: {"
|
||||||
blame_xml += " innerRadius: 0.4,"
|
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 += " }"
|
blame_xml += " }"
|
||||||
blame_xml += " });"
|
blame_xml += " });"
|
||||||
|
@ -200,13 +200,16 @@ class ChangesOutput(Outputable):
|
|||||||
changes_xml += ("<tfoot><tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td>" +
|
changes_xml += ("<tfoot><tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td>" +
|
||||||
"</tr></tfoot></tbody></table>")
|
"</tr></tfoot></tbody></table>")
|
||||||
changes_xml += "<div class=\"chart\" id=\"changes_chart\"></div></div>"
|
changes_xml += "<div class=\"chart\" id=\"changes_chart\"></div></div>"
|
||||||
|
|
||||||
changes_xml += "<script type=\"text/javascript\">"
|
changes_xml += "<script type=\"text/javascript\">"
|
||||||
changes_xml += " $.plot($(\"#changes_chart\"), [{0}], {{".format(chart_data)
|
changes_xml += " $.plot($(\"#changes_chart\"), [{0}], {{".format(chart_data)
|
||||||
changes_xml += " series: {"
|
changes_xml += " series: {"
|
||||||
changes_xml += " pie: {"
|
changes_xml += " pie: {"
|
||||||
changes_xml += " innerRadius: 0.4,"
|
changes_xml += " innerRadius: 0.4,"
|
||||||
changes_xml += " show: true"
|
changes_xml += " show: true,"
|
||||||
|
changes_xml += " combine: {"
|
||||||
|
changes_xml += " threshold: 0.01,"
|
||||||
|
changes_xml += " label: \"Other Authors\""
|
||||||
|
changes_xml += " }"
|
||||||
changes_xml += " }"
|
changes_xml += " }"
|
||||||
changes_xml += " }"
|
changes_xml += " }"
|
||||||
changes_xml += " });"
|
changes_xml += " });"
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
table.git {{
|
table.git {{
|
||||||
font-size: small;
|
font-size: small;
|
||||||
width: 60%;
|
width: 60%;
|
||||||
|
padding-right: 5px;
|
||||||
}}
|
}}
|
||||||
table.full {{
|
table.full {{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -81,9 +82,10 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
right: 5px;
|
right: 0px;
|
||||||
width: 40%;
|
width: 40%;
|
||||||
font-size: x-small;
|
font-size: x-small;
|
||||||
|
height: 240px;
|
||||||
}}
|
}}
|
||||||
p.error {{
|
p.error {{
|
||||||
color: #700;
|
color: #700;
|
||||||
|
Loading…
Reference in New Issue
Block a user