gov-uk-dashboards 22.2.0__py3-none-any.whl → 23.1.0__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.
- gov_uk_dashboards/components/leaflet/leaflet_choropleth_map.py +4 -4
- {gov_uk_dashboards-22.2.0.dist-info → gov_uk_dashboards-23.1.0.dist-info}/METADATA +1 -1
- {gov_uk_dashboards-22.2.0.dist-info → gov_uk_dashboards-23.1.0.dist-info}/RECORD +6 -6
- {gov_uk_dashboards-22.2.0.dist-info → gov_uk_dashboards-23.1.0.dist-info}/WHEEL +0 -0
- {gov_uk_dashboards-22.2.0.dist-info → gov_uk_dashboards-23.1.0.dist-info}/licenses/LICENSE +0 -0
- {gov_uk_dashboards-22.2.0.dist-info → gov_uk_dashboards-23.1.0.dist-info}/top_level.txt +0 -0
@@ -36,7 +36,7 @@ class LeafletChoroplethMap:
|
|
36
36
|
legend_column: str,
|
37
37
|
area_column: str,
|
38
38
|
title: str,
|
39
|
-
|
39
|
+
instance_number: int,
|
40
40
|
subtitle: Optional[str] = None,
|
41
41
|
enable_zoom: bool = True,
|
42
42
|
download_chart_button_id: Optional[str] = None,
|
@@ -58,7 +58,7 @@ class LeafletChoroplethMap:
|
|
58
58
|
self.color_scale_is_discrete = color_scale_is_discrete
|
59
59
|
self.show_tile_layer = show_tile_layer
|
60
60
|
self._add_data_to_geojson()
|
61
|
-
self.
|
61
|
+
self.instance_number = instance_number
|
62
62
|
|
63
63
|
def get_leaflet_choropleth_map(self):
|
64
64
|
"""Creates and returns leaflet choropleth map chart for display on application.
|
@@ -88,7 +88,7 @@ class LeafletChoroplethMap:
|
|
88
88
|
maxBounds=[[49.8, -10], [55.9, 1.8]],
|
89
89
|
**zoom_controls,
|
90
90
|
attributionControl=False,
|
91
|
-
style={"width": "100%", "height": "
|
91
|
+
style={"width": "100%", "height": "960px", "background": "white"},
|
92
92
|
)
|
93
93
|
download_choropleth_map = dl.Map(
|
94
94
|
children=[
|
@@ -112,7 +112,7 @@ class LeafletChoroplethMap:
|
|
112
112
|
self.download_data_button_id,
|
113
113
|
self.download_chart_button_id,
|
114
114
|
None,
|
115
|
-
self.
|
115
|
+
self.instance_number,
|
116
116
|
)
|
117
117
|
download_choropleth_map_display = display_chart_or_table_with_header(
|
118
118
|
download_choropleth_map,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: gov_uk_dashboards
|
3
|
-
Version:
|
3
|
+
Version: 23.1.0
|
4
4
|
Summary: Provides access to functionality common to creating a data dashboard.
|
5
5
|
Author: Department for Levelling Up, Housing and Communities
|
6
6
|
Description-Content-Type: text/markdown
|
@@ -78,7 +78,7 @@ gov_uk_dashboards/components/helpers/get_chart_for_download.py,sha256=I0IH7bE3B8
|
|
78
78
|
gov_uk_dashboards/components/helpers/plotting_helper_functions.py,sha256=WUif1mlSgWPuTZptBqaElWpJTlitmuiJofMTpOe_Bsg,1833
|
79
79
|
gov_uk_dashboards/components/helpers/update_layout_bgcolor_margin.py,sha256=i7Nwp0CxFpkyQeR8KfOBVMBkzctG7hMpWI2OzgxB2jY,740
|
80
80
|
gov_uk_dashboards/components/leaflet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
81
|
-
gov_uk_dashboards/components/leaflet/leaflet_choropleth_map.py,sha256=
|
81
|
+
gov_uk_dashboards/components/leaflet/leaflet_choropleth_map.py,sha256=TLfsA-cCx6x_MJwsgejkgwH9OLcr1chp2-5sVneGtGA,10259
|
82
82
|
gov_uk_dashboards/components/plotly/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
83
83
|
gov_uk_dashboards/components/plotly/captioned_figure.py,sha256=T0sbtGTiJ79FXxVdPb__hqISuyTc3Dl11cKhgcuW-5U,2804
|
84
84
|
gov_uk_dashboards/components/plotly/choropleth_map.py,sha256=U9RmS3MZGloQAt9HoSYh3Xad205DDfZOjz91ZD_ydbI,9849
|
@@ -109,8 +109,8 @@ gov_uk_dashboards/lib/datetime_functions/datetime_functions.py,sha256=BQgr8I_vFN
|
|
109
109
|
gov_uk_dashboards/lib/download_functions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
110
110
|
gov_uk_dashboards/lib/download_functions/convert_fig_to_image_and_download.py,sha256=-dkYbpTL6txftFfAZW-vfW_O9efb6Dse9WJ9MM6mAqw,534
|
111
111
|
gov_uk_dashboards/lib/download_functions/download_csv_with_headers.py,sha256=aLL3UodmilZA_1bQhtjtKi3FoB-4X_MtLOcDw5e1Nwo,4412
|
112
|
-
gov_uk_dashboards-
|
113
|
-
gov_uk_dashboards-
|
114
|
-
gov_uk_dashboards-
|
115
|
-
gov_uk_dashboards-
|
116
|
-
gov_uk_dashboards-
|
112
|
+
gov_uk_dashboards-23.1.0.dist-info/licenses/LICENSE,sha256=GDiD7Y2Gx7JucPV1JfVySJeah-qiSyBPdpJ6RHCEHTc,1126
|
113
|
+
gov_uk_dashboards-23.1.0.dist-info/METADATA,sha256=CbvbkxjcweduBot0WInnC-x8I7mLKtWrd2xVzV5m9Do,5917
|
114
|
+
gov_uk_dashboards-23.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
115
|
+
gov_uk_dashboards-23.1.0.dist-info/top_level.txt,sha256=gPaN1P3-H3Rgi2me6tt-fX_cxo19CZfA4PjlZPjGRpo,18
|
116
|
+
gov_uk_dashboards-23.1.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|