File size: 2,425 Bytes
b88006b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
    "app": {
        "name": "SDG Dashboard",
        "version": "2025.1",
        "debug": false,
        "log_level": "INFO",
        "environment": "development"
    },
    "data_sources": {
        "primary_data_path": "data/SDR2025-data.xlsx",
        "fallback_data_path": "data/sdg_index_2000-2022.csv",
        "sample_data_enabled": true,
        "cache_ttl_seconds": 3600,
        "api_endpoints": {
            "sdg_api": "https://api.sdgindex.org/v1",
            "un_stats_api": "https://unstats.un.org/sdgapi"
        }
    },
    "ai_engine": {
        "enabled": true,
        "base_url": null,
        "api_key": null,
        "default_model": "gemini-2.5-flash",
        "temperature": 0.6,
        "max_tokens": 2000,
        "cache_enabled": true,
        "cache_ttl_hours": 24,
        "retry_attempts": 3,
        "retry_delay_seconds": 2
    },
    "visualization": {
        "default_theme": "plotly_white",
        "color_scheme": "sdg_official",
        "chart_height": 500,
        "map_projection": "equirectangular",
        "sdg_colors": {
            "1": "#E5243B",
            "2": "#DDA63A",
            "3": "#4C9F38",
            "4": "#C5192D",
            "5": "#FF3A21",
            "6": "#26BDE2",
            "7": "#FCC30B",
            "8": "#A21942",
            "9": "#FD6925",
            "10": "#DD1367",
            "11": "#FD9D24",
            "12": "#BF8B2E",
            "13": "#3F7E44",
            "14": "#0A97D9",
            "15": "#56C02B",
            "16": "#00689D",
            "17": "#19486A"
        },
        "traffic_light_thresholds": {
            "excellent": 80,
            "good": 65,
            "needs_improvement": 50
        }
    },
    "export": {
        "default_format": "pdf",
        "pdf_quality": "high",
        "pptx_template": null,
        "output_directory": "exports",
        "include_metadata": true,
        "max_content_per_slide": 500
    },
    "ui": {
        "page_title": "全球 SDG 互動儀表板 & AI 報告生成器",
        "page_icon": "🌍",
        "layout": "wide",
        "initial_sidebar_state": "expanded",
        "default_language": "繁體中文",
        "default_year_range": [2015, 2025],
        "max_countries_comparison": 5
    },
    "security": {
        "require_api_key": false,
        "allowed_origins": ["*"],
        "rate_limit_requests": 100,
        "rate_limit_period_seconds": 60
    }
}