<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.bundle.js">
var canvas = document.createElement("canvas");
var context = canvas.getContext("2d");
document.body.appendChild(canvas);

var avgTemperature = [ 0.94, 0.95, 5.29, 7.97, 12.7, 16.26, 19.19, 20.63, 14.98, 8.13, 5.51, 4.27 ];
var monthNames = [ "styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień" ];

new Chart(context, {
  type: "bar",
  data: {
    labels: monthNames,
    datasets: [
      {
        label: "Średnia temperatura w Polsce (2017)",
        data: avgTemperature
      }
    ]
  }
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.