diff options
| author | Felix Hanley <felix@userspace.com.au> | 2020-03-16 11:24:04 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2020-03-16 11:24:04 +0000 |
| commit | 2248b4d7e1d083a103e94985ee4b373d689ae0e8 (patch) | |
| tree | 20a3f12a7d793ddadd5225e3e0cb44fa738682a5 /country.go | |
| parent | c16f2a68eeb6550743354245f95605a141c1d020 (diff) | |
| download | sws-2248b4d7e1d083a103e94985ee4b373d689ae0e8.tar.gz sws-2248b4d7e1d083a103e94985ee4b373d689ae0e8.tar.bz2 | |
Update graph displays and supporting helpers
Diffstat (limited to 'country.go')
| -rw-r--r-- | country.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -67,6 +67,13 @@ func (cs CountrySet) YMax() int { } return max } +func (cs CountrySet) YSum() int { + sum := 0 + for _, c := range cs { + sum += c.hitSet.Count() + } + return sum +} func (cs CountrySet) XSeries() []*Country { return cs } |
