Skip to content

Commit 61b5cc8

Browse files
Merge pull request #229 from CodeForAfrica/fixes
[NG] Fix Charts & Data Issues from Feedback Docs
2 parents a6ed4a9 + 9025ac3 commit 61b5cc8

12 files changed

+2906
-1485
lines changed

hurumap_ng/fixtures/hurumap_ng.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

hurumap_ng/profiles.py

Lines changed: 246 additions & 189 deletions
Large diffs are not rendered by default.

hurumap_ng/sql/external_domestic_debt.sql

Lines changed: 592 additions & 593 deletions
Large diffs are not rendered by default.

hurumap_ng/sql/literacy.sql

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
--
2+
-- PostgreSQL database dump
3+
--
4+
5+
-- Dumped from database version 10.6
6+
-- Dumped by pg_dump version 10.6
7+
8+
SET statement_timeout = 0;
9+
SET lock_timeout = 0;
10+
SET client_encoding = 'UTF8';
11+
SET standard_conforming_strings = on;
12+
SELECT pg_catalog.set_config('search_path', '', false);
13+
SET check_function_bodies = false;
14+
SET client_min_messages = warning;
15+
16+
ALTER TABLE IF EXISTS ONLY public.literacy DROP CONSTRAINT IF EXISTS literacy_pkey;
17+
DROP TABLE IF EXISTS public.literacy;
18+
SET default_tablespace = '';
19+
20+
SET default_with_oids = false;
21+
22+
--
23+
-- Name: literacy; Type: TABLE; Schema: public; Owner: -
24+
--
25+
26+
CREATE TABLE public.literacy (
27+
geo_level character varying(15) NOT NULL,
28+
geo_code character varying(10) NOT NULL,
29+
geo_version character varying(128) NOT NULL,
30+
gender character varying(128) NOT NULL,
31+
total numeric
32+
);
33+
34+
35+
--
36+
-- Data for Name: literacy; Type: TABLE DATA; Schema: public; Owner: -
37+
--
38+
39+
COPY public.literacy (geo_level, geo_code, geo_version, gender, total) FROM stdin;
40+
country NG 2016 Female 59.3
41+
country NG 2016 Male 70.9
42+
state 1 2016 Female 98.2
43+
state 1 2016 Male 94.2
44+
state 2 2016 Female 50.6
45+
state 2 2016 Male 74.3
46+
state 3 2016 Female 94.6
47+
state 3 2016 Male 92.7
48+
state 4 2016 Female 98.1
49+
state 4 2016 Male 95.1
50+
state 5 2016 Female 25.6
51+
state 5 2016 Male 39.8
52+
state 6 2016 Female 95.8
53+
state 6 2016 Male 98.3
54+
state 7 2016 Female 69.9
55+
state 7 2016 Male 90.5
56+
state 8 2016 Female 56.4
57+
state 8 2016 Male 60.3
58+
state 9 2016 Female 94.3
59+
state 9 2016 Male 95
60+
state 10 2016 Female 91
61+
state 10 2016 Male 95.3
62+
state 11 2016 Female 83.4
63+
state 11 2016 Male 81.9
64+
state 12 2016 Female 94.9
65+
state 12 2016 Male 98.3
66+
state 13 2016 Female 96.7
67+
state 13 2016 Male 99
68+
state 14 2016 Female 97.9
69+
state 14 2016 Male 96.8
70+
state 15 2016 Female 81.3
71+
state 15 2016 Male 90.1
72+
state 16 2016 Female 37.5
73+
state 16 2016 Male 47.5
74+
state 17 2016 Female 98.2
75+
state 17 2016 Male 98.9
76+
state 18 2016 Female 24.8
77+
state 18 2016 Male 32.3
78+
state 19 2016 Female 54.4
79+
state 19 2016 Male 65.2
80+
state 20 2016 Female 46.1
81+
state 20 2016 Male 72.5
82+
state 21 2016 Female 32.6
83+
state 21 2016 Male 62.6
84+
state 22 2016 Female 30.9
85+
state 22 2016 Male 41.8
86+
state 23 2016 Female 86.3
87+
state 23 2016 Male 92.4
88+
state 24 2016 Female 73.5
89+
state 24 2016 Male 81
90+
state 25 2016 Female 93.1
91+
state 25 2016 Male 98.3
92+
state 26 2016 Female 56
93+
state 26 2016 Male 78.1
94+
state 27 2016 Female 37.6
95+
state 27 2016 Male 58.9
96+
state 28 2016 Female 90.7
97+
state 28 2016 Male 89
98+
state 29 2016 Female 91.4
99+
state 29 2016 Male 93.4
100+
state 30 2016 Female 94.7
101+
state 30 2016 Male 94.8
102+
state 31 2016 Female 90.7
103+
state 31 2016 Male 88.3
104+
state 32 2016 Female 65.1
105+
state 32 2016 Male 69.6
106+
state 33 2016 Female 98.1
107+
state 33 2016 Male 94.7
108+
state 34 2016 Female 20.1
109+
state 34 2016 Male 47.4
110+
state 35 2016 Female 53.1
111+
state 35 2016 Male 70.6
112+
state 36 2016 Female 28.3
113+
state 36 2016 Male 42.7
114+
state 37 2016 Female 31
115+
state 37 2016 Male 53
116+
\.
117+
118+
119+
--
120+
-- Name: literacy literacy_pkey; Type: CONSTRAINT; Schema: public; Owner: -
121+
--
122+
123+
ALTER TABLE ONLY public.literacy
124+
ADD CONSTRAINT literacy_pkey PRIMARY KEY (geo_level, geo_code, geo_version, gender);
125+
126+
127+
--
128+
-- PostgreSQL database dump complete
129+
--

hurumap_ng/sql/maternal_mortality.sql

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
--
2+
-- PostgreSQL database dump
3+
--
4+
5+
-- Dumped from database version 10.6
6+
-- Dumped by pg_dump version 10.6
7+
8+
SET statement_timeout = 0;
9+
SET lock_timeout = 0;
10+
SET client_encoding = 'UTF8';
11+
SET standard_conforming_strings = on;
12+
SELECT pg_catalog.set_config('search_path', '', false);
13+
SET check_function_bodies = false;
14+
SET client_min_messages = warning;
15+
16+
ALTER TABLE IF EXISTS ONLY public.maternal_mortality DROP CONSTRAINT IF EXISTS maternal_mortality_pkey;
17+
DROP TABLE IF EXISTS public.maternal_mortality;
18+
SET default_tablespace = '';
19+
20+
SET default_with_oids = false;
21+
22+
--
23+
-- Name: maternal_mortality; Type: TABLE; Schema: public; Owner: -
24+
--
25+
26+
CREATE TABLE public.maternal_mortality (
27+
geo_level character varying(15) NOT NULL,
28+
geo_code character varying(10) NOT NULL,
29+
geo_version character varying(128) NOT NULL,
30+
year character varying(128) NOT NULL,
31+
total numeric
32+
);
33+
34+
35+
--
36+
-- Data for Name: maternal_mortality; Type: TABLE DATA; Schema: public; Owner: -
37+
--
38+
39+
COPY public.maternal_mortality (geo_level, geo_code, geo_version, year, total) FROM stdin;
40+
country NG 2016 2016 567.5
41+
state 1 2016 2016 375.9
42+
state 2 2016 2016 1841.9
43+
state 3 2016 2016 150.9
44+
state 4 2016 2016 279
45+
state 5 2016 2016 593.8
46+
state 6 2016 2016 471.1
47+
state 7 2016 2016 809.6
48+
state 8 2016 2016 2374.8
49+
state 9 2016 2016 642.3
50+
state 10 2016 2016 394.1
51+
state 11 2016 2016 218
52+
state 12 2016 2016 641.4
53+
state 13 2016 2016 876.8
54+
state 14 2016 2016 519
55+
state 15 2016 2016 83.6
56+
state 16 2016 2016 371.3
57+
state 17 2016 2016 642.9
58+
state 18 2016 2016 298.8
59+
state 19 2016 2016 452.6
60+
state 20 2016 2016 364.3
61+
state 21 2016 2016 214.2
62+
state 22 2016 2016 506.1
63+
state 23 2016 2016 1267.8
64+
state 24 2016 2016 904.4
65+
state 25 2016 2016 110.4
66+
state 26 2016 2016 817
67+
state 27 2016 2016 387
68+
state 28 2016 2016 258.8
69+
state 29 2016 2016 115.9
70+
state 30 2016 2016 344.1
71+
state 31 2016 2016 184
72+
state 32 2016 2016 278.5
73+
state 33 2016 2016 483.4
74+
state 34 2016 2016 737.4
75+
state 35 2016 2016 623.2
76+
state 36 2016 2016 1678.9
77+
state 37 2016 2016 259.8
78+
\.
79+
80+
81+
--
82+
-- Name: maternal_mortality maternal_mortality_pkey; Type: CONSTRAINT; Schema: public; Owner: -
83+
--
84+
85+
ALTER TABLE ONLY public.maternal_mortality
86+
ADD CONSTRAINT maternal_mortality_pkey PRIMARY KEY (geo_level, geo_code, geo_version, year);
87+
88+
89+
--
90+
-- PostgreSQL database dump complete
91+
--

0 commit comments

Comments
 (0)