This commit is contained in:
parent
2acb95ed92
commit
ee9ba04e75
|
@ -13,9 +13,9 @@ const data = [120, 200, 50, 80, 70];
|
|||
const data2 = [12, 20, 5, 8, 7];
|
||||
const data3 = [20, 100, 40, 80, 70];
|
||||
const lineData = [150, 230, 24, 218, 135];
|
||||
const lineData2 = [100, 200, 40, 180, 15];
|
||||
const lineData2 = [100, 200, 40, 180, 300];
|
||||
const max = data
|
||||
.concat(lineData)
|
||||
.concat(lineData,lineData2)
|
||||
.reduce((pre, cur) => (pre > cur ? pre : cur), 0); //找到这个新数组中的最大值
|
||||
// 背景颜色
|
||||
const color = [
|
||||
|
|
Loading…
Reference in New Issue