newsworthycharts 1.65.0__tar.gz → 1.65.1__tar.gz
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-1.65.0/newsworthycharts.egg-info → newsworthycharts-1.65.1}/PKG-INFO +6 -16
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/README.rst +4 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/__init__.py +1 -1
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/categoricalchart.py +2 -2
- newsworthycharts-1.65.1/newsworthycharts/translations/.~lock.datawrapper_regions.csv# +1 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1/newsworthycharts.egg-info}/PKG-INFO +6 -16
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts.egg-info/SOURCES.txt +1 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts.egg-info/dependency_links.txt +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts.egg-info/not-zip-safe +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts.egg-info/requires.txt +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts.egg-info/top_level.txt +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_categorical_chart.py +20 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/LICENSE.txt +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/MANIFEST.in +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/bubblemap.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/chart.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/choroplethmap.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/custom/__init__.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/custom/climate_cars.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/datawrapper.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/__init__.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/color_fn.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/colors.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/datalist.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/formatter.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/geography.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/locator.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/mimetypes.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/lib/utils.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/map.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/maps/se-4.gpkg +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/maps/se-7.gpkg +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/rangeplot.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/rc/newsworthy +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/scatterplot.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/seasonalchart.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/serialchart.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/storage.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/stripechart.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/translations/datawrapper_regions.csv +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/translations/regions.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/translations/se_municipalities.csv +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/setup.cfg +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/setup.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_choropleth_maps.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_custom_climate_cars.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_data_list.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_datawrapper.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_main.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_rangeplot.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_scatterplot.py +0 -0
- {newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/test/test_serial_chart.py +0 -0
@@ -1,29 +1,15 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.65.
|
3
|
+
Version: 1.65.1
|
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.65.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.65.1.tar.gz
|
7
7
|
Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
|
8
8
|
Author-email: stockholm@jplusplus.org
|
9
9
|
License: MIT
|
10
10
|
Requires-Python: >=3.9
|
11
11
|
Description-Content-Type: text/x-rst
|
12
12
|
License-File: LICENSE.txt
|
13
|
-
Requires-Dist: boto3>=1.26
|
14
|
-
Requires-Dist: matplotlib==3.9.2
|
15
|
-
Requires-Dist: langcodes>=3.3
|
16
|
-
Requires-Dist: Babel<3,>=2.14.0
|
17
|
-
Requires-Dist: PyYAML>=3
|
18
|
-
Requires-Dist: adjustText==0.7.3
|
19
|
-
Requires-Dist: numpy>2
|
20
|
-
Requires-Dist: python-dateutil<3,>=2
|
21
|
-
Requires-Dist: Pillow==11.0.0
|
22
|
-
Requires-Dist: requests>=2.22
|
23
|
-
Requires-Dist: matplotlib-label-lines==0.5.1
|
24
|
-
Requires-Dist: geopandas>=1
|
25
|
-
Requires-Dist: mapclassify==2.8.1
|
26
|
-
Requires-Dist: puremagic>=1
|
27
13
|
|
28
14
|
This module contains methods for producing graphs and publishing them on Amazon S3, or in the location of your choice.
|
29
15
|
|
@@ -259,6 +245,10 @@ Roadmap
|
|
259
245
|
Changelog
|
260
246
|
---------
|
261
247
|
|
248
|
+
- 1.65.1
|
249
|
+
|
250
|
+
- Fixed legend bug in ProgressChart
|
251
|
+
|
262
252
|
- 1.65.0
|
263
253
|
|
264
254
|
- Stacked data with percentages summing to very close to 100 % will now be treated as 100 %, assuming rounding error artifacts
|
@@ -232,6 +232,10 @@ Roadmap
|
|
232
232
|
Changelog
|
233
233
|
---------
|
234
234
|
|
235
|
+
- 1.65.1
|
236
|
+
|
237
|
+
- Fixed legend bug in ProgressChart
|
238
|
+
|
235
239
|
- 1.65.0
|
236
240
|
|
237
241
|
- Stacked data with percentages summing to very close to 100 % will now be treated as 100 %, assuming rounding error artifacts
|
@@ -292,13 +292,13 @@ class ProgressChart(CategoricalChart):
|
|
292
292
|
def __init__(self, *args, **kwargs):
|
293
293
|
self.target = None
|
294
294
|
self.target_label = None
|
295
|
-
self.legend = False
|
296
295
|
|
297
296
|
# should value labels be rendered?
|
298
297
|
self.value_labels = None # "progress"|"remaining"
|
299
298
|
|
300
299
|
super().__init__(*args, **kwargs)
|
301
300
|
self.stacked = True
|
301
|
+
self.legend = False
|
302
302
|
|
303
303
|
def _add_data(self):
|
304
304
|
if self.target is None:
|
@@ -339,7 +339,7 @@ class ProgressChart(CategoricalChart):
|
|
339
339
|
|
340
340
|
# rect.set_linewidth(1)
|
341
341
|
# rect.set_edgecolor(color_progress)
|
342
|
-
|
342
|
+
|
343
343
|
# LABELING: Target
|
344
344
|
if self.target_label:
|
345
345
|
offset = 25
|
@@ -0,0 +1 @@
|
|
1
|
+
,jens,jens-XPS-13,10.02.2020 11:26,file:///home/jens/.config/libreoffice/4;
|
@@ -1,29 +1,15 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.65.
|
3
|
+
Version: 1.65.1
|
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.65.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.65.1.tar.gz
|
7
7
|
Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
|
8
8
|
Author-email: stockholm@jplusplus.org
|
9
9
|
License: MIT
|
10
10
|
Requires-Python: >=3.9
|
11
11
|
Description-Content-Type: text/x-rst
|
12
12
|
License-File: LICENSE.txt
|
13
|
-
Requires-Dist: boto3>=1.26
|
14
|
-
Requires-Dist: matplotlib==3.9.2
|
15
|
-
Requires-Dist: langcodes>=3.3
|
16
|
-
Requires-Dist: Babel<3,>=2.14.0
|
17
|
-
Requires-Dist: PyYAML>=3
|
18
|
-
Requires-Dist: adjustText==0.7.3
|
19
|
-
Requires-Dist: numpy>2
|
20
|
-
Requires-Dist: python-dateutil<3,>=2
|
21
|
-
Requires-Dist: Pillow==11.0.0
|
22
|
-
Requires-Dist: requests>=2.22
|
23
|
-
Requires-Dist: matplotlib-label-lines==0.5.1
|
24
|
-
Requires-Dist: geopandas>=1
|
25
|
-
Requires-Dist: mapclassify==2.8.1
|
26
|
-
Requires-Dist: puremagic>=1
|
27
13
|
|
28
14
|
This module contains methods for producing graphs and publishing them on Amazon S3, or in the location of your choice.
|
29
15
|
|
@@ -259,6 +245,10 @@ Roadmap
|
|
259
245
|
Changelog
|
260
246
|
---------
|
261
247
|
|
248
|
+
- 1.65.1
|
249
|
+
|
250
|
+
- Fixed legend bug in ProgressChart
|
251
|
+
|
262
252
|
- 1.65.0
|
263
253
|
|
264
254
|
- Stacked data with percentages summing to very close to 100 % will now be treated as 100 %, assuming rounding error artifacts
|
@@ -36,6 +36,7 @@ newsworthycharts/lib/utils.py
|
|
36
36
|
newsworthycharts/maps/se-4.gpkg
|
37
37
|
newsworthycharts/maps/se-7.gpkg
|
38
38
|
newsworthycharts/rc/newsworthy
|
39
|
+
newsworthycharts/translations/.~lock.datawrapper_regions.csv#
|
39
40
|
newsworthycharts/translations/datawrapper_regions.csv
|
40
41
|
newsworthycharts/translations/regions.py
|
41
42
|
newsworthycharts/translations/se_municipalities.csv
|
{newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -338,3 +338,23 @@ def test_progress_chart_with_multiple_targets():
|
|
338
338
|
c = ProgressChart.init_from(chart_obj, storage=local_storage)
|
339
339
|
|
340
340
|
c.render("progress_chart_with_multiple_targets", "png")
|
341
|
+
|
342
|
+
def test_basic_progress_chart():
|
343
|
+
chart_obj = {
|
344
|
+
"data": [
|
345
|
+
[
|
346
|
+
("A", .9404),
|
347
|
+
("B", .8868),
|
348
|
+
("C", .8260),
|
349
|
+
],
|
350
|
+
],
|
351
|
+
"target": 1,
|
352
|
+
"value_labels": "progress",
|
353
|
+
"width": 700,
|
354
|
+
"height": 400,
|
355
|
+
"units": "percent",
|
356
|
+
"bar_orientation": "horizontal",
|
357
|
+
"title": "Inga mål uppnås"
|
358
|
+
}
|
359
|
+
c = ProgressChart.init_from(chart_obj, storage=local_storage)
|
360
|
+
c.render("progress_chart_basic", "png")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{newsworthycharts-1.65.0 → newsworthycharts-1.65.1}/newsworthycharts/translations/regions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|