teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

2020/10/21 03:05

投稿

yaa_
yaa_

スコア0

title CHANGED
File without changes
body CHANGED
@@ -14,6 +14,7 @@
14
14
  申し訳ございませんが、教えて頂けると幸いです。
15
15
  https://teratail.com/questions/93985
16
16
 
17
+ ```ここに言語を入力
17
18
  <html lang="ja">
18
19
 
19
20
  <head>
@@ -65,4 +66,5 @@
65
66
 
66
67
  </script>
67
68
  </body>
68
- </html>
69
+ </html>
70
+ ```

1

2020/10/21 03:05

投稿

yaa_
yaa_

スコア0

title CHANGED
File without changes
body CHANGED
@@ -12,4 +12,57 @@
12
12
 
13
13
 
14
14
  申し訳ございませんが、教えて頂けると幸いです。
15
- https://teratail.com/questions/93985
15
+ https://teratail.com/questions/93985
16
+
17
+ <html lang="ja">
18
+
19
+ <head>
20
+ <title>グラフ</title>
21
+ </head>
22
+ <body>
23
+ <canvas id="myRaderChart"></canvas>
24
+ <!-- CDN -->
25
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.bundle.js"></script>
26
+ <script>
27
+ var ctx = document.getElementById("myRaderChart");
28
+ var myRadarChart = new Chart(ctx, {
29
+ type: 'radar',
30
+ data: {
31
+ labels: ["test1", "test2", ["test", "3"]],
32
+ datasets: [{
33
+ label: 'てすと',
34
+ data: [92, 72, 86],
35
+ backgroundColor: 'RGBA(225,95,150, 0.5)',
36
+ borderColor: 'RGBA(225,95,150, 1)',
37
+ borderWidth: 1,
38
+ pointBackgroundColor: 'RGB(46,106,177)'
39
+ }]
40
+ },
41
+ options: {
42
+ legend: {
43
+ display: false
44
+ },
45
+ title: {
46
+ display: true,
47
+ text: '診断結果'
48
+ },
49
+ tooltips: {
50
+
51
+ },
52
+ scale:{
53
+ ticks:{
54
+ suggestedMin: 10,
55
+ suggestedMax: 100,
56
+ stepSize: 10,
57
+ callback: function( index, values){
58
+ return ''
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ });
65
+
66
+ </script>
67
+ </body>
68
+ </html>