diff --git a/README.md b/README.md index 2d9be8e2..9ce95961 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,12 @@ The growth of Nubenetes reflects the acceleration of the Cloud Native ecosystem. ```mermaid +--- +config: + themeVariables: + xyChart: + plotColorPalette: "#5462eb, #fb8c00" +--- xychart-beta title "Nubenetes Annual Growth Metrics (Commits vs New Refs)" x-axis ["2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"] diff --git a/src/readme_updater.py b/src/readme_updater.py index a0cf38f4..15d1f81f 100644 --- a/src/readme_updater.py +++ b/src/readme_updater.py @@ -101,7 +101,7 @@ def get_stats(): growth_data.sort(key=lambda x: x["year"]) # Generate Bar Chart (Mandate 3: Metric Comparison) - annual_chart = "```mermaid\nxychart-beta\n title \"Nubenetes Annual Growth Metrics (Commits vs New Refs)\"\n" + annual_chart = "```mermaid\n---\nconfig:\n themeVariables:\n xyChart:\n plotColorPalette: \"#5462eb, #fb8c00\"\n---\nxychart-beta\n title \"Nubenetes Annual Growth Metrics (Commits vs New Refs)\"\n" years = [f'"{item["year"]}"' for item in growth_data] commits = [item["count"] for item in growth_data] refs = [str(int(int(item["count"]) * 4.13)) for item in growth_data]