Skip to content

Commit 57fda1c

Browse files
committed
🎨 Update chart3 to use side-by-side layout with 550px height
1 parent a1f7472 commit 57fda1c

7 files changed

+8
-34
lines changed

‎docs/chart1-supplier-influence.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎docs/chart3-defense-systems.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎docs/chart4-multi-country-radar.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎docs/chart5-priorities-heatmap.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎docs/chart7-supplier-connections.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎docs/threat-perception-analysis.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎geopolitical-dashboard/generate_charts_with_filters.py‎

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -336,34 +336,8 @@ def main():
336336
# Chart 3: Defense Systems with filters
337337
print("📊 Chart 3: Defense Systems Analysis")
338338
try:
339-
fig_scatter = create_3d_scatter_figure("all")
340-
fig_choropleth = create_choropleth_figure("all")
341-
342-
# Combine both figures into a subplot
343-
from plotly.subplots import make_subplots
344-
combined_fig = make_subplots(
345-
rows=2, cols=1,
346-
subplot_titles=("Defense Systems Geographic Overview", "Defense Systems 3D Analysis by Supplier"),
347-
specs=[[{"type": "geo"}], [{"type": "scatter3d"}]],
348-
vertical_spacing=0.15
349-
)
350-
351-
# Add choropleth traces
352-
for trace in fig_choropleth.data:
353-
combined_fig.add_trace(trace, row=1, col=1)
354-
355-
# Add scatter3d traces
356-
for trace in fig_scatter.data:
357-
combined_fig.add_trace(trace, row=2, col=1)
358-
359-
# Update layout
360-
combined_fig.update_layout(
361-
height=1200,
362-
showlegend=True,
363-
title_text="Defense Systems Analysis"
364-
)
365-
366-
fig = combined_fig
339+
fig_chart = create_3d_scatter_figure("all")
340+
fig = combine_choropleth_with_chart(fig_chart, "Defense Systems Analysis")
367341
html = fig.to_html(include_plotlyjs='cdn')
368342
filters_html = '''
369343
<div class="filter-group">

0 commit comments

Comments
 (0)