update image
Browse files- config.json +113 -67
- network.py +2 -2
config.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
"encodings": {
|
12 |
"dimensions": [
|
13 |
{
|
14 |
-
"dragId": "
|
15 |
"fid": "GW_153M2HTVSG",
|
16 |
"name": "item",
|
17 |
"basename": "item",
|
@@ -19,7 +19,7 @@
|
|
19 |
"analyticType": "dimension"
|
20 |
},
|
21 |
{
|
22 |
-
"dragId": "
|
23 |
"fid": "GW_2X73E2RH6IPJOOK4G8G",
|
24 |
"name": "accusedurl",
|
25 |
"basename": "accusedurl",
|
@@ -27,7 +27,7 @@
|
|
27 |
"analyticType": "dimension"
|
28 |
},
|
29 |
{
|
30 |
-
"dragId": "
|
31 |
"fid": "GW_G0O5DCTUJ01U6ZK8G",
|
32 |
"name": "itemLabel",
|
33 |
"basename": "itemLabel",
|
@@ -35,71 +35,103 @@
|
|
35 |
"analyticType": "dimension"
|
36 |
},
|
37 |
{
|
38 |
-
"dragId": "
|
39 |
-
"fid": "
|
40 |
"name": "residence",
|
41 |
"basename": "residence",
|
42 |
"semanticType": "nominal",
|
43 |
"analyticType": "dimension"
|
44 |
},
|
45 |
{
|
46 |
-
"dragId": "
|
47 |
-
"fid": "
|
48 |
"name": "gender",
|
49 |
"basename": "gender",
|
50 |
"semanticType": "nominal",
|
51 |
"analyticType": "dimension"
|
52 |
},
|
53 |
{
|
54 |
-
"dragId": "
|
55 |
-
"fid": "
|
56 |
-
"name": "
|
57 |
-
"basename": "
|
58 |
"semanticType": "nominal",
|
59 |
"analyticType": "dimension"
|
60 |
},
|
61 |
{
|
62 |
-
"dragId": "
|
63 |
-
"fid": "
|
64 |
-
"name": "
|
65 |
-
"basename": "
|
66 |
"semanticType": "nominal",
|
67 |
"analyticType": "dimension"
|
68 |
},
|
69 |
{
|
70 |
-
"dragId": "
|
71 |
-
"fid": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
"name": "manner_of_inhumane_treatment",
|
73 |
"basename": "manner_of_inhumane_treatment",
|
74 |
"semanticType": "nominal",
|
75 |
"analyticType": "dimension"
|
76 |
},
|
77 |
{
|
78 |
-
"dragId": "
|
79 |
-
"fid": "
|
80 |
-
"name": "
|
81 |
-
"basename": "
|
82 |
"semanticType": "nominal",
|
83 |
"analyticType": "dimension"
|
84 |
},
|
85 |
{
|
86 |
-
"dragId": "
|
87 |
-
"fid": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
"name": "occupation",
|
89 |
"basename": "occupation",
|
90 |
"semanticType": "nominal",
|
91 |
"analyticType": "dimension"
|
92 |
},
|
93 |
{
|
94 |
-
"dragId": "
|
95 |
-
"fid": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
"name": "spouse",
|
97 |
"basename": "spouse",
|
98 |
"semanticType": "nominal",
|
99 |
"analyticType": "dimension"
|
100 |
},
|
101 |
{
|
102 |
-
"dragId": "
|
103 |
"fid": "GW_GGYX5I6DWC5400P4G",
|
104 |
"name": "longitude",
|
105 |
"basename": "longitude",
|
@@ -107,7 +139,7 @@
|
|
107 |
"analyticType": "dimension"
|
108 |
},
|
109 |
{
|
110 |
-
"dragId": "
|
111 |
"fid": "GW_2BCEDJ2KYSIN2ZHS",
|
112 |
"name": "latitude",
|
113 |
"basename": "latitude",
|
@@ -115,36 +147,11 @@
|
|
115 |
"analyticType": "dimension"
|
116 |
},
|
117 |
{
|
118 |
-
"
|
119 |
-
"
|
120 |
-
"
|
121 |
"analyticType": "dimension",
|
122 |
-
"
|
123 |
-
"dragId": "GW_BFrlUJKd"
|
124 |
-
},
|
125 |
-
{
|
126 |
-
"fid": "GW_CHAWSEHZCMSO4W",
|
127 |
-
"name": "sibling",
|
128 |
-
"semanticType": "nominal",
|
129 |
-
"analyticType": "dimension",
|
130 |
-
"basename": "sibling",
|
131 |
-
"dragId": "GW_enUhIyMF"
|
132 |
-
},
|
133 |
-
{
|
134 |
-
"fid": "GW_7NIDHER5RU8",
|
135 |
-
"name": "child",
|
136 |
-
"semanticType": "nominal",
|
137 |
-
"analyticType": "dimension",
|
138 |
-
"basename": "child",
|
139 |
-
"dragId": "GW_c7Noxzdq"
|
140 |
-
},
|
141 |
-
{
|
142 |
-
"fid": "GW_1NWT9FT2YJVAO",
|
143 |
-
"name": "mother",
|
144 |
-
"semanticType": "nominal",
|
145 |
-
"analyticType": "dimension",
|
146 |
-
"basename": "mother",
|
147 |
-
"dragId": "GW_YApxzLXH"
|
148 |
}
|
149 |
],
|
150 |
"measures": [
|
@@ -171,12 +178,30 @@
|
|
171 |
"aggName": "sum"
|
172 |
}
|
173 |
],
|
174 |
-
"rows": [
|
175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
"color": [
|
177 |
{
|
178 |
-
"dragId": "
|
179 |
-
"fid": "
|
180 |
"name": "class",
|
181 |
"basename": "class",
|
182 |
"semanticType": "nominal",
|
@@ -190,7 +215,7 @@
|
|
190 |
"theta": [],
|
191 |
"longitude": [
|
192 |
{
|
193 |
-
"dragId": "
|
194 |
"fid": "GW_GGYX5I6DWC5400P4G",
|
195 |
"name": "longitude",
|
196 |
"basename": "longitude",
|
@@ -200,7 +225,7 @@
|
|
200 |
],
|
201 |
"latitude": [
|
202 |
{
|
203 |
-
"dragId": "
|
204 |
"fid": "GW_2BCEDJ2KYSIN2ZHS",
|
205 |
"name": "latitude",
|
206 |
"basename": "latitude",
|
@@ -211,15 +236,30 @@
|
|
211 |
"geoId": [],
|
212 |
"details": [
|
213 |
{
|
214 |
-
"dragId": "
|
215 |
-
"fid": "
|
216 |
"name": "residence",
|
217 |
"basename": "residence",
|
218 |
"semanticType": "nominal",
|
219 |
"analyticType": "dimension"
|
220 |
}
|
221 |
],
|
222 |
-
"filters": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
"text": []
|
224 |
},
|
225 |
"layout": {
|
@@ -243,9 +283,15 @@
|
|
243 |
"shape": false,
|
244 |
"size": false
|
245 |
},
|
246 |
-
"scaleIncludeUnmatchedChoropleth": false
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
},
|
248 |
-
"visId": "
|
249 |
"name": "Chart 1"
|
250 |
}
|
251 |
]
|
|
|
11 |
"encodings": {
|
12 |
"dimensions": [
|
13 |
{
|
14 |
+
"dragId": "gw_KZ47",
|
15 |
"fid": "GW_153M2HTVSG",
|
16 |
"name": "item",
|
17 |
"basename": "item",
|
|
|
19 |
"analyticType": "dimension"
|
20 |
},
|
21 |
{
|
22 |
+
"dragId": "gw_H-4b",
|
23 |
"fid": "GW_2X73E2RH6IPJOOK4G8G",
|
24 |
"name": "accusedurl",
|
25 |
"basename": "accusedurl",
|
|
|
27 |
"analyticType": "dimension"
|
28 |
},
|
29 |
{
|
30 |
+
"dragId": "gw_ywK4",
|
31 |
"fid": "GW_G0O5DCTUJ01U6ZK8G",
|
32 |
"name": "itemLabel",
|
33 |
"basename": "itemLabel",
|
|
|
35 |
"analyticType": "dimension"
|
36 |
},
|
37 |
{
|
38 |
+
"dragId": "gw_fmzz",
|
39 |
+
"fid": "GW_HDKFBEGG73J96GPIO",
|
40 |
"name": "residence",
|
41 |
"basename": "residence",
|
42 |
"semanticType": "nominal",
|
43 |
"analyticType": "dimension"
|
44 |
},
|
45 |
{
|
46 |
+
"dragId": "gw_3MR0",
|
47 |
+
"fid": "GW_1KLSFMY2R0OJ4",
|
48 |
"name": "gender",
|
49 |
"basename": "gender",
|
50 |
"semanticType": "nominal",
|
51 |
"analyticType": "dimension"
|
52 |
},
|
53 |
{
|
54 |
+
"dragId": "gw_q_1Z",
|
55 |
+
"fid": "GW_D4RGPMWP5NUV1P8HRCUUQ6B4HVRSR3K",
|
56 |
+
"name": "place_of_detention",
|
57 |
+
"basename": "place_of_detention",
|
58 |
"semanticType": "nominal",
|
59 |
"analyticType": "dimension"
|
60 |
},
|
61 |
{
|
62 |
+
"dragId": "gw_k_pg",
|
63 |
+
"fid": "GW_5VT47IYCEH7N9GEB2GHTDSVG0",
|
64 |
+
"name": "cause_of_death",
|
65 |
+
"basename": "cause_of_death",
|
66 |
"semanticType": "nominal",
|
67 |
"analyticType": "dimension"
|
68 |
},
|
69 |
{
|
70 |
+
"dragId": "gw_L14a",
|
71 |
+
"fid": "GW_7NJX6443QY8",
|
72 |
+
"name": "class",
|
73 |
+
"basename": "class",
|
74 |
+
"semanticType": "nominal",
|
75 |
+
"analyticType": "dimension"
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"dragId": "gw_xzQP",
|
79 |
+
"fid": "GW_1XVAOKGRVDNCI8PHRTEVPC2UKPZM2OQG2V03Y8V8IY6NG34",
|
80 |
"name": "manner_of_inhumane_treatment",
|
81 |
"basename": "manner_of_inhumane_treatment",
|
82 |
"semanticType": "nominal",
|
83 |
"analyticType": "dimension"
|
84 |
},
|
85 |
{
|
86 |
+
"dragId": "gw_Gmrl",
|
87 |
+
"fid": "GW_1K1RWLJMRKVG0",
|
88 |
+
"name": "father",
|
89 |
+
"basename": "father",
|
90 |
"semanticType": "nominal",
|
91 |
"analyticType": "dimension"
|
92 |
},
|
93 |
{
|
94 |
+
"dragId": "gw_5eBf",
|
95 |
+
"fid": "GW_1NWT9FT2YJVAO",
|
96 |
+
"name": "mother",
|
97 |
+
"basename": "mother",
|
98 |
+
"semanticType": "nominal",
|
99 |
+
"analyticType": "dimension"
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"dragId": "gw_EMrb",
|
103 |
+
"fid": "GW_CHAWSEHZCMSO4W",
|
104 |
+
"name": "sibling",
|
105 |
+
"basename": "sibling",
|
106 |
+
"semanticType": "nominal",
|
107 |
+
"analyticType": "dimension"
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"dragId": "gw_f4F9",
|
111 |
+
"fid": "GW_3CBI7Y91KPT95VHSGFK",
|
112 |
"name": "occupation",
|
113 |
"basename": "occupation",
|
114 |
"semanticType": "nominal",
|
115 |
"analyticType": "dimension"
|
116 |
},
|
117 |
{
|
118 |
+
"dragId": "gw_O4Mu",
|
119 |
+
"fid": "GW_7NIDHER5RU8",
|
120 |
+
"name": "child",
|
121 |
+
"basename": "child",
|
122 |
+
"semanticType": "nominal",
|
123 |
+
"analyticType": "dimension"
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"dragId": "gw_jfNn",
|
127 |
+
"fid": "GW_1R750ZVDV9MWG",
|
128 |
"name": "spouse",
|
129 |
"basename": "spouse",
|
130 |
"semanticType": "nominal",
|
131 |
"analyticType": "dimension"
|
132 |
},
|
133 |
{
|
134 |
+
"dragId": "gw_ozkh",
|
135 |
"fid": "GW_GGYX5I6DWC5400P4G",
|
136 |
"name": "longitude",
|
137 |
"basename": "longitude",
|
|
|
139 |
"analyticType": "dimension"
|
140 |
},
|
141 |
{
|
142 |
+
"dragId": "gw_vtYe",
|
143 |
"fid": "GW_2BCEDJ2KYSIN2ZHS",
|
144 |
"name": "latitude",
|
145 |
"basename": "latitude",
|
|
|
147 |
"analyticType": "dimension"
|
148 |
},
|
149 |
{
|
150 |
+
"dragId": "gw_mea_key_fid",
|
151 |
+
"fid": "GW_N72PJ8XHCGBP8WPPED8GP4G",
|
152 |
+
"name": "Measure names",
|
153 |
"analyticType": "dimension",
|
154 |
+
"semanticType": "nominal"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
}
|
156 |
],
|
157 |
"measures": [
|
|
|
178 |
"aggName": "sum"
|
179 |
}
|
180 |
],
|
181 |
+
"rows": [
|
182 |
+
{
|
183 |
+
"dragId": "gw_WfZ7",
|
184 |
+
"fid": "GW_2BCEDJ2KYSIN2ZHS",
|
185 |
+
"name": "latitude",
|
186 |
+
"basename": "latitude",
|
187 |
+
"semanticType": "quantitative",
|
188 |
+
"analyticType": "dimension"
|
189 |
+
}
|
190 |
+
],
|
191 |
+
"columns": [
|
192 |
+
{
|
193 |
+
"dragId": "gw_JHv3",
|
194 |
+
"fid": "GW_GGYX5I6DWC5400P4G",
|
195 |
+
"name": "longitude",
|
196 |
+
"basename": "longitude",
|
197 |
+
"semanticType": "quantitative",
|
198 |
+
"analyticType": "dimension"
|
199 |
+
}
|
200 |
+
],
|
201 |
"color": [
|
202 |
{
|
203 |
+
"dragId": "gw_4tLT",
|
204 |
+
"fid": "GW_7NJX6443QY8",
|
205 |
"name": "class",
|
206 |
"basename": "class",
|
207 |
"semanticType": "nominal",
|
|
|
215 |
"theta": [],
|
216 |
"longitude": [
|
217 |
{
|
218 |
+
"dragId": "gw_utgq",
|
219 |
"fid": "GW_GGYX5I6DWC5400P4G",
|
220 |
"name": "longitude",
|
221 |
"basename": "longitude",
|
|
|
225 |
],
|
226 |
"latitude": [
|
227 |
{
|
228 |
+
"dragId": "gw_CXXm",
|
229 |
"fid": "GW_2BCEDJ2KYSIN2ZHS",
|
230 |
"name": "latitude",
|
231 |
"basename": "latitude",
|
|
|
236 |
"geoId": [],
|
237 |
"details": [
|
238 |
{
|
239 |
+
"dragId": "gw_QHcc",
|
240 |
+
"fid": "GW_HDKFBEGG73J96GPIO",
|
241 |
"name": "residence",
|
242 |
"basename": "residence",
|
243 |
"semanticType": "nominal",
|
244 |
"analyticType": "dimension"
|
245 |
}
|
246 |
],
|
247 |
+
"filters": [
|
248 |
+
{
|
249 |
+
"dragId": "gw_C7cS",
|
250 |
+
"fid": "GW_1KLSFMY2R0OJ4",
|
251 |
+
"name": "gender",
|
252 |
+
"basename": "gender",
|
253 |
+
"semanticType": "nominal",
|
254 |
+
"analyticType": "dimension",
|
255 |
+
"rule": {
|
256 |
+
"type": "not in",
|
257 |
+
"value": [
|
258 |
+
"male"
|
259 |
+
]
|
260 |
+
}
|
261 |
+
}
|
262 |
+
],
|
263 |
"text": []
|
264 |
},
|
265 |
"layout": {
|
|
|
283 |
"shape": false,
|
284 |
"size": false
|
285 |
},
|
286 |
+
"scaleIncludeUnmatchedChoropleth": false,
|
287 |
+
"colorPalette": "",
|
288 |
+
"useSvg": false,
|
289 |
+
"scale": {
|
290 |
+
"opacity": {},
|
291 |
+
"size": {}
|
292 |
+
}
|
293 |
},
|
294 |
+
"visId": "gw_Ml3c",
|
295 |
"name": "Chart 1"
|
296 |
}
|
297 |
]
|
network.py
CHANGED
@@ -35,7 +35,7 @@ def analysis():
|
|
35 |
# plt.show()
|
36 |
|
37 |
|
38 |
-
net = Network(bgcolor="#222222", font_color="white", directed=True)
|
39 |
net.from_nx(G)
|
40 |
|
41 |
for node in net.nodes:
|
@@ -54,7 +54,7 @@ def analysis():
|
|
54 |
#need to remove ' from HTML
|
55 |
html = html.replace("'", "\"")
|
56 |
|
57 |
-
return f"""<iframe style="width: 100%; height:
|
58 |
display-capture; encrypted-media;" sandbox="allow-modals allow-forms
|
59 |
allow-scripts allow-same-origin allow-popups
|
60 |
allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
|
|
|
35 |
# plt.show()
|
36 |
|
37 |
|
38 |
+
net = Network(width="800px", height="800px", bgcolor="#222222", font_color="white", directed=True)
|
39 |
net.from_nx(G)
|
40 |
|
41 |
for node in net.nodes:
|
|
|
54 |
#need to remove ' from HTML
|
55 |
html = html.replace("'", "\"")
|
56 |
|
57 |
+
return f"""<iframe style="width: 100%; height: 800px;margin:0 auto" name="result" allow="midi; geolocation; microphone; camera;
|
58 |
display-capture; encrypted-media;" sandbox="allow-modals allow-forms
|
59 |
allow-scripts allow-same-origin allow-popups
|
60 |
allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
|