import matplotlib.pyplot as plt

# Dati
anni = ['2025', '2026', '2027', '2028', '2029']
ricavi = [548, 585, 632, 689, 754]

# Creazione della figura
plt.figure(figsize=(8, 5))

# Grafico a barre
bars = plt.bar(anni, ricavi, color='#1f77b4', width=0.55, zorder=2)

# Sovrapposizione linea di trend per enfatizzare la crescita
plt.plot(anni, ricavi, color='#ff7f0e', marker='o', linewidth=2.5, markersize=8, zorder=3)

# Impostazione limite asse Y per enfatizzare visivamente l'incremento
plt.ylim(500, 780)

# Etichette sui dati
for bar in bars:
    yval = bar.get_height()
    plt.text(bar.get_x() + bar.get_width()/2, yval + 5, f'{yval} M€', 
             ha='center', va='bottom', fontsize=10, fontweight='bold')

# Titoli e stile
plt.title("Andamento e Crescita dei Ricavi (2025 - 2029)", fontsize=14, fontweight='bold', pad=15)
plt.ylabel("Ricavi (mln €)", fontsize=11)
plt.grid(axis='y', linestyle='--', alpha=0.5, zorder=1)

# Annotazione della crescita totale
plt.annotate('Crescita Totale: +37.6%', xy=(4, 754), xytext=(2.2, 730),
             arrowprops=dict(facecolor='black', shrink=0.05, width=1, headwidth=6),
             fontsize=11, fontweight='bold', color='#d62728')

plt.tight_layout()
plt.show()

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: