Przeglądaj źródła

update to current chart.js version

Thomas Buck 4 lat temu
rodzic
commit
f01b4d90c7
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3
    1
      index.html

+ 3
- 1
index.html Wyświetl plik

@@ -2,7 +2,7 @@
2 2
     <head>
3 3
         <meta charset="utf-8" />
4 4
         <title>Weight-Track</title>
5
-        <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.bundle.min.js" integrity="sha256-MZo5XY1Ah7Z2Aui4/alkfeiq3CopMdV/bbkc/Sh41+s=" crossorigin="anonymous"></script>
5
+        <script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.0/dist/Chart.bundle.min.js" integrity="sha256-tSYaQkuUF17Z5HozxXRWckY1j6uVLYFEHGEooJ6YsP0=" crossorigin="anonymous"></script>
6 6
     </head>
7 7
     <body>
8 8
         <div id="content">
@@ -41,6 +41,8 @@
41 41
                     borderColor: [
42 42
                         'rgba(' + color + ', 1)'
43 43
                     ],
44
+                    pointBorderColor: 'rgba(' + color + ', 1)',
45
+                    pointRadius: 2,
44 46
                     borderWidth: 4
45 47
                 };
46 48
             };

Ładowanie…
Anuluj
Zapisz