staticdash 2026.1__py3-none-any.whl → 2026.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.
@@ -153,6 +153,16 @@ body {
153
153
  width: 100%;
154
154
  }
155
155
 
156
+ /* Ensure Plotly SVG text inherits a robust font stack so glyphs (e.g., minus) render */
157
+ .plotly {
158
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
159
+ }
160
+ .plotly svg text,
161
+ .plotly .main-svg text {
162
+ font-family: inherit;
163
+ -webkit-font-smoothing: antialiased;
164
+ }
165
+
156
166
  .plot-container .plotly-graph-div {
157
167
  width: 100% !important;
158
168
  height: auto !important;
staticdash/dashboard.py CHANGED
@@ -135,8 +135,6 @@ class Page(AbstractPage):
135
135
  # to avoid rendering issues when a user's font lacks the U+2212 glyph.
136
136
  try:
137
137
  plotly_html = fig.to_html(full_html=False, include_plotlyjs=False, config={'responsive': True})
138
- if '\u2212' in plotly_html or '−' in plotly_html:
139
- plotly_html = plotly_html.replace('−', '-')
140
138
  elem = div(raw_util(plotly_html))
141
139
  except Exception as e:
142
140
  elem = div(f"Plotly figure could not be rendered: {e}")
@@ -236,8 +234,6 @@ class MiniPage(AbstractPage):
236
234
  pass
237
235
  try:
238
236
  plotly_html = fig.to_html(full_html=False, include_plotlyjs=False, config={'responsive': True})
239
- if '\u2212' in plotly_html or '−' in plotly_html:
240
- plotly_html = plotly_html.replace('−', '-')
241
237
  elem = div(raw_util(plotly_html))
242
238
  except Exception as e:
243
239
  elem = div(f"Plotly figure could not be rendered: {e}")
@@ -351,6 +347,9 @@ class Dashboard:
351
347
  shutil.copytree(assets_src, assets_dst, dirs_exist_ok=True)
352
348
 
353
349
  def _add_head_assets(head, rel_prefix, effective_width):
350
+ # Ensure pages declare UTF-8 to avoid character misinterpretation
351
+ head.add(raw_util('<meta charset="utf-8" />'))
352
+ head.add(raw_util('<meta name="viewport" content="width=device-width, initial-scale=1" />'))
354
353
  # Your CSS/JS
355
354
  head.add(link(rel="stylesheet", href=f"{rel_prefix}assets/css/style.css"))
356
355
  head.add(script(type="text/javascript", src=f"{rel_prefix}assets/js/script.js"))
@@ -568,6 +567,8 @@ class Directory:
568
567
 
569
568
  # Add CSS and basic styling
570
569
  with doc.head:
570
+ # Ensure charset is declared for the landing page too
571
+ doc.head.add(raw_util('<meta charset="utf-8" />'))
571
572
  link(rel="stylesheet", href="assets/css/style.css")
572
573
  raw_util("""
573
574
  <style>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2026.1
3
+ Version: 2026.2
4
4
  Summary: A lightweight static HTML dashboard generator with Plotly and pandas support.
5
5
  Author-email: Brian Day <brian.day1@gmail.com>
6
6
  License: CC0-1.0
@@ -1,6 +1,6 @@
1
1
  staticdash/__init__.py,sha256=MQGR6LAqx2aFEA64MZz1ADxwpXLPn3VYNVIyjt9qx4Q,268
2
- staticdash/dashboard.py,sha256=9FqhqQmVu_siq_UxAPzyCZ6BLp1MtDKOU3JOjw83C8A,29381
3
- staticdash/assets/css/style.css,sha256=eZX2-pNVUesRWR9ssR63cfmMjJEQkeZqQTU_f93FJGE,6697
2
+ staticdash/dashboard.py,sha256=xy3f8e0t6HQALSSuhj9z7I00h3oDnnAJIzTewCR4Quw,29452
3
+ staticdash/assets/css/style.css,sha256=AOYdkw-nK_WvV6im_Y34gz4rJZWifk5o-mRmCKwMP60,7014
4
4
  staticdash/assets/js/script.js,sha256=7xBRlz_19wybbNVwAcfuKNXtDEojGB4EB0Yj4klsoTA,6998
5
5
  staticdash/assets/vendor/mathjax/tex-mml-chtml.js,sha256=MASABpB4tYktI2Oitl4t-78w_lyA-D7b_s9GEP0JOGI,1173007
6
6
  staticdash/assets/vendor/plotly/plotly.min.js,sha256=ChdxmnJ1FwSGEhXaDlxc2z-ajVDv9cuEy2-LgHhmgrA,3632287
@@ -13,7 +13,7 @@ staticdash/assets/vendor/prism/components/prism-json.min.js,sha256=lW2GuqWufsQQZ
13
13
  staticdash/assets/vendor/prism/components/prism-markup.min.js,sha256=h5_J0lbDUtmA4FOFf6cHMwhTuL-2fOKE6mYaJN7FdW4,2850
14
14
  staticdash/assets/vendor/prism/components/prism-python.min.js,sha256=7UOFaFvPLUk1yNu6tL3hZgPaEyngktK_NsPa3WfpqFw,2113
15
15
  staticdash/assets/vendor/prism/components/prism-sql.min.js,sha256=P8X4zmmVDsc63JcvBh30Kq6nj6pIZHCRNOoq3Ag_OjM,3261
16
- staticdash-2026.1.dist-info/METADATA,sha256=wJ5uhhemiHd8BoxyktkpBxZQOBiqv2km8-eSHUKOTsk,2445
17
- staticdash-2026.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- staticdash-2026.1.dist-info/top_level.txt,sha256=3MzZU6SptkUkjcHV1cvPji0H4aRzPphLHnpStgGEcxM,11
19
- staticdash-2026.1.dist-info/RECORD,,
16
+ staticdash-2026.2.dist-info/METADATA,sha256=XdDg08yBsaYylKH6g8OFK0VrQN7vUyT--75Z9OFYdzA,2445
17
+ staticdash-2026.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ staticdash-2026.2.dist-info/top_level.txt,sha256=3MzZU6SptkUkjcHV1cvPji0H4aRzPphLHnpStgGEcxM,11
19
+ staticdash-2026.2.dist-info/RECORD,,