Mogę przygotować wykres SVG na podstawie dostępnych danych historycznych o średnich temperaturach w Polsce z podziałem na miesiące.
Dane historyczne dla Polski są dostępne w różnych źródłach, najczęściej od 1951 roku (czyli ponad 7 dekad), a czasem nawet od końca XIX wieku (np. Warszawa od 1881 r.), ale najpewniejsze i kompletne dane ogólnopolskie to okres 1951–2020.
Przykładowe dane (średnie miesięczne temperatury w Polsce, 1991–2020, °C):
| Miesiąc | I | II | III | IV | V | VI | VII | VIII | IX | X | XI | XII |
|---|
| Temp. | -1.0 | 0.0 | 3.2 | 8.2 | 13.5 | 16.7 | 18.5 | 18.0 | 13.5 | 8.6 | 3.6 | 0.1 |
Źródło: IMGW, klimat.imgw.pl
Wykres SVG: Średnie miesięczne temperatury w Polsce (1991–2020)
<svg width="600" height="300" viewBox="0 0 600 300" xmlns="http://www.w3.org/2000/svg">
<rect width="600" height="300" fill="#fff"/>
<text x="300" y="30" font-size="18" text-anchor="middle" font-family="Arial">Średnie miesięczne temperatury w Polsce (1991–2020)</text>
<!-- Oś Y -->
<line x1="50" y1="250" x2="50" y2="60" stroke="#333" stroke-width="2"/>
<!-- Oś X -->
<line x1="50" y1="250" x2="550" y2="250" stroke="#333" stroke-width="2"/>
<!-- Opisy osi Y -->
<text x="40" y="255" font-size="10" text-anchor="end" font-family="Arial">-2</text>
<text x="40" y="220" font-size="10" text-anchor="end" font-family="Arial">0</text>
<text x="40" y="180" font-size="10" text-anchor="end" font-family="Arial">5</text>
<text x="40" y="140" font-size="10" text-anchor="end" font-family="Arial">10</text>
<text x="40" y="100" font-size="10" text-anchor="end" font-family="Arial">15</text>
<text x="40" y="60" font-size="10" text-anchor="end" font-family="Arial">20</text>
<!-- Linie pomocnicze -->
<line x1="50" y1="220" x2="550" y2="220" stroke="#eee"/>
<line x1="50" y1="180" x2="550" y2="180" stroke="#eee"/>
<line x1="50" y1="140" x2="550" y2="140" stroke="#eee"/>
<line x1="50" y1="100" x2="550" y2="100" stroke="#eee"/>
<line x1="50" y1="60" x2="550" y2="60" stroke="#eee"/>
<!-- Punkty i linia -->
<polyline fill="none" stroke="#e74c3c" stroke-width="3"
points="50,230 100,220 150,200 200,160 250,110 300,80 350,60 400,65 450,110 500,160 550,200 600,220"/>
<!-- Punkty -->
<circle cx="50" cy="230" r="4" fill="#e74c3c"/>
<circle cx="100" cy="220" r="4" fill="#e74c3c"/>
<circle cx="150" cy="200" r="4" fill="#e74c3c"/>
<circle cx="200" cy="160" r="4" fill="#e74c3c"/>
<circle cx="250" cy="110" r="4" fill="#e74c3c"/>
<circle cx="300" cy="80" r="4" fill="#e74c3c"/>
<circle cx="350" cy="60" r="4" fill="#e74c3c"/>
<circle cx="400" cy="65" r="4" fill="#e74c3c"/>
<circle cx="450" cy="110" r="4" fill="#e74c3c"/>
<circle cx="500" cy="160" r="4" fill="#e74c3c"/>
<circle cx="550" cy="200" r="4" fill="#e74c3c"/>
<circle cx="600" cy="220" r="4" fill="#e74c3c"/>
<!-- Opisy miesięcy -->
<text x="50" y="270" font-size="10" text-anchor="middle" font-family="Arial">I</text>
<text x="100" y="270" font-size="10" text-anchor="middle" font-family="Arial">II</text>
<text x="150" y="270" font-size="10" text-anchor="middle" font-family="Arial">III</text>
<text x="200" y="270" font-size="10" text-anchor="middle" font-family="Arial">IV</text>
<text x="250" y="270" font-size="10" text-anchor="middle" font-family="Arial">V</text>
<text x="300" y="270" font-size="10" text-anchor="middle" font-family="Arial">VI</text>
<text x="350" y="270" font-size="10" text-anchor="middle" font-family="Arial">VII</text>
<text x="400" y="270" font-size="10" text-anchor="middle" font-family="Arial">VIII</text>
<text x="450" y="270" font-size="10" text-anchor="middle" font-family="Arial">IX</text>
<text x="500" y="270" font-size="10" text-anchor="middle" font-family="Arial">X</text>
<text x="550" y="270" font-size="10" text-anchor="middle" font-family="Arial">XI</text>
<text x="600" y="270" font-size="10" text-anchor="middle" font-family="Arial">XII</text>
</svg>