docs: fix Mermaid xychart-beta bar colors in README.md

This commit is contained in:
Nubenetes Bot
2026-05-18 21:00:49 +02:00
parent bbab6d8450
commit 4ba0ee1dfe
2 changed files with 7 additions and 1 deletions

View File

@@ -168,6 +168,12 @@ The growth of Nubenetes reflects the acceleration of the Cloud Native ecosystem.
<!-- ANNUAL_CHART_START -->
```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"]

View File

@@ -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]