Divide by total number of people to get percentage
svn: r11618
This commit is contained in:
parent
68fed70200
commit
57e07cfd22
@ -370,7 +370,7 @@ class SurnameCloudGramplet(Gramplet):
|
|||||||
size = make_tag_size(count, counts)
|
size = make_tag_size(count, counts)
|
||||||
self.link(text, 'Surname', representative_handle[surname], size,
|
self.link(text, 'Surname', representative_handle[surname], size,
|
||||||
"%s, %d%% (%d)" % (text,
|
"%s, %d%% (%d)" % (text,
|
||||||
int((float(count)/total_surnames) * 100),
|
int((float(count)/total_people) * 100),
|
||||||
count))
|
count))
|
||||||
self.append_text(" ")
|
self.append_text(" ")
|
||||||
showing += 1
|
showing += 1
|
||||||
|
@ -120,8 +120,9 @@ class GivenNameCloudGramplet(Gramplet):
|
|||||||
text = givensubname
|
text = givensubname
|
||||||
size = make_tag_size(count, counts)
|
size = make_tag_size(count, counts)
|
||||||
self.link(text, 'Given', text, size,
|
self.link(text, 'Given', text, size,
|
||||||
"%s, %d%% (%d)" % (text,
|
"%s, %.2f%% (%d)" %
|
||||||
int((float(count)/total_givensubnames) * 100),
|
(text,
|
||||||
|
(float(count)/total_people) * 100,
|
||||||
count))
|
count))
|
||||||
self.append_text(" ")
|
self.append_text(" ")
|
||||||
showing += 1
|
showing += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user