newsworthycharts 1.63.1__py3-none-any.whl → 1.63.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- newsworthycharts/__init__.py +1 -1
- newsworthycharts/lib/utils.py +2 -1
- {newsworthycharts-1.63.1.dist-info → newsworthycharts-1.63.2.dist-info}/METADATA +6 -2
- {newsworthycharts-1.63.1.dist-info → newsworthycharts-1.63.2.dist-info}/RECORD +7 -7
- {newsworthycharts-1.63.1.dist-info → newsworthycharts-1.63.2.dist-info}/LICENSE.txt +0 -0
- {newsworthycharts-1.63.1.dist-info → newsworthycharts-1.63.2.dist-info}/WHEEL +0 -0
- {newsworthycharts-1.63.1.dist-info → newsworthycharts-1.63.2.dist-info}/top_level.txt +0 -0
newsworthycharts/__init__.py
CHANGED
newsworthycharts/lib/utils.py
CHANGED
@@ -167,9 +167,10 @@ def guess_date_interval(data):
|
|
167
167
|
for serie in data:
|
168
168
|
dates = [to_date(x[0]) for x in serie]
|
169
169
|
years = [x.year for x in dates]
|
170
|
+
decades = [x.year // 10 * 10 for x in dates]
|
170
171
|
|
171
172
|
# Are there decades with more than one year?
|
172
|
-
if len(years) > len(set(
|
173
|
+
if len(set(years)) > len(set(decades)):
|
173
174
|
interval = "yearly"
|
174
175
|
|
175
176
|
months = [x.month for x in dates]
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.63.
|
3
|
+
Version: 1.63.2
|
4
4
|
Summary: Matplotlib wrapper to create charts and publish them on Amazon S3
|
5
5
|
Home-page: https://github.com/jplusplus/newsworthycharts
|
6
|
-
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.63.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.63.2.tar.gz
|
7
7
|
Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
|
8
8
|
Author-email: stockholm@jplusplus.org
|
9
9
|
License: MIT
|
@@ -252,6 +252,10 @@ Roadmap
|
|
252
252
|
Changelog
|
253
253
|
---------
|
254
254
|
|
255
|
+
- 1.63.2
|
256
|
+
|
257
|
+
- Fixed bug in interval detection in SerialChart, affecting yearly data
|
258
|
+
|
255
259
|
- 1.63.1
|
256
260
|
|
257
261
|
- Fix version number in
|
@@ -1,4 +1,4 @@
|
|
1
|
-
newsworthycharts/__init__.py,sha256=
|
1
|
+
newsworthycharts/__init__.py,sha256=M7ITQUn4R41FT6KyEqJTzJZswkTBLemG-BC4pKqmYSw,1160
|
2
2
|
newsworthycharts/bubblemap.py,sha256=nkocWmpiFgfjEuJGAsthjY5X7Q56jXWsZHUGXw4PwgE,2587
|
3
3
|
newsworthycharts/categoricalchart.py,sha256=LwOZ3VbNy9vzvoK0s77AkbfMt4CXVDSAhnsnBInUIrE,14764
|
4
4
|
newsworthycharts/chart.py,sha256=e118gGQbFpRJZl3SWLhVCBatclG80eFdojrxJn8td5g,31664
|
@@ -21,15 +21,15 @@ newsworthycharts/lib/formatter.py,sha256=GNH43hE0bC17OgiV8LYH3YUrEhm7OJh9XzfSV4H
|
|
21
21
|
newsworthycharts/lib/geography.py,sha256=K0_teFmuPJwXX7Py-amJB_1YY5_gL2kBYhz1LrRCyTg,584
|
22
22
|
newsworthycharts/lib/locator.py,sha256=rJHdgiA0LASRzdLINhTeU5zOoq1TCMgge4KOBWSagnM,3041
|
23
23
|
newsworthycharts/lib/mimetypes.py,sha256=bL9HtVWbn2Of39LcBt4u4yelkr4bGZiyebq3OfLnfFY,237
|
24
|
-
newsworthycharts/lib/utils.py,sha256=
|
24
|
+
newsworthycharts/lib/utils.py,sha256=l4SUVB-8lnm3XHqHNo5KgZuZNv_VaFnrH76hrZmDq1s,7231
|
25
25
|
newsworthycharts/maps/se-4.gpkg,sha256=oWw5j7FPVpI0ig67jNDim8qSn5SG8rcHp0014-uTKZM,290816
|
26
26
|
newsworthycharts/maps/se-7.gpkg,sha256=Vmvqudq_ZtgV0sd6TY6kuk7vzqmYZCJmaxtsJ87q2a8,331776
|
27
27
|
newsworthycharts/rc/newsworthy,sha256=vbYTav1w3DmB5tpaaV7Xl5q7TQJsc9eou6pLCoWc2vs,1589
|
28
28
|
newsworthycharts/translations/datawrapper_regions.csv,sha256=fzZcQRX6RFMlNNP8mpgfYNdR3Y0QAlQxDXk8FXTaWWI,9214
|
29
29
|
newsworthycharts/translations/regions.py,sha256=Nv1McQjggD4S3JRu82rDMTG3pqUVR13E5-FBpSYbm98,239
|
30
30
|
newsworthycharts/translations/se_municipalities.csv,sha256=br_mm-IvzQtj_W55_ATREhJ97jWnCweBFlDAVY2EBxA,7098
|
31
|
-
newsworthycharts-1.63.
|
32
|
-
newsworthycharts-1.63.
|
33
|
-
newsworthycharts-1.63.
|
34
|
-
newsworthycharts-1.63.
|
35
|
-
newsworthycharts-1.63.
|
31
|
+
newsworthycharts-1.63.2.dist-info/LICENSE.txt,sha256=Sq6kGICrehbhC_FolNdXf0djKjTpv3YqjFCIYsxdQN4,1069
|
32
|
+
newsworthycharts-1.63.2.dist-info/METADATA,sha256=Wby-h-OOlS5HDshkU7nYzByEvZT8RYNlvE4w6cTfjjE,29411
|
33
|
+
newsworthycharts-1.63.2.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
34
|
+
newsworthycharts-1.63.2.dist-info/top_level.txt,sha256=dn_kzIj8UgUCMsh1PHdVEQJHVGSsN7Z8YJF-8xXa8n0,17
|
35
|
+
newsworthycharts-1.63.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|