質問編集履歴

1

HTMLのソースを少し修正しました。(コピペが間違っていたため。)

2020/03/19 08:05

投稿

lily0630
lily0630

スコア30

test CHANGED
File without changes
test CHANGED
@@ -42,19 +42,19 @@
42
42
 
43
43
  datasets: [{//1軸目
44
44
 
45
- type: 'bar',label: "売上高",data: [3786,4901,5086,4881,5222,6054,6260,6673],backgroundColor:['rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.3)'],borderColor: 'rgb(255,127,80)',borderWidth: 1,},
45
+ type: 'bar',label: "Sample1",data: [3786,4901,5086,4881,5222,6054,6260,6673],backgroundColor:['rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.8)','rgba(255,127,80,0.3)'],borderColor: 'rgb(255,127,80)',borderWidth: 1,},
46
46
 
47
47
  {//2軸目
48
48
 
49
- type: 'bar',label: "営業利益",data: [499,583,661,673,630,507,658,710],backgroundColor: ['rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.3)'],borderColor: "rgb(255,165,0)",borderWidth: 1,yAxisID: "y2"},
49
+ type: 'bar',label: "Sample2",data: [499,583,661,673,630,507,658,710],backgroundColor: ['rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.8)','rgba(255,165,0,0.3)'],borderColor: "rgb(255,165,0)",borderWidth: 1,yAxisID: "y2"},
50
50
 
51
51
  {//3軸目
52
52
 
53
- type: 'bar',label: "経常利益",data: [461,550,637,657,623,488,633,640],backgroundColor: ['rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.3)'],borderColor: "rgb(255,215,0)",borderWidth: 1,yAxisID: "y2"},
53
+ type: 'bar',label: "Sample3",data: [461,550,637,657,623,488,633,640],backgroundColor: ['rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.8)','rgba(255,215,0,0.3)'],borderColor: "rgb(255,215,0)",borderWidth: 1,yAxisID: "y2"},
54
54
 
55
55
  {//4軸目
56
56
 
57
- type: 'bar',label: "当期純利益",data: [311,333,406,437,413,329,439,423],backgroundColor:['rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.3)'],borderColor: "rgb(210,105,30)",borderWidth: 1,yAxisID: "y2"
57
+ type: 'bar',label: "Sample4",data: [311,333,406,437,413,329,439,423],backgroundColor:['rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.8)','rgba(210,105,30,0.3)'],borderColor: "rgb(210,105,30)",borderWidth: 1,yAxisID: "y2"
58
58
 
59
59
  }]
60
60