This commit is contained in:
parent
502f01ad65
commit
2acb95ed92
|
@ -88,7 +88,7 @@ const option = {
|
|||
},
|
||||
],
|
||||
yAxis: [
|
||||
{
|
||||
{
|
||||
type: "value",
|
||||
scale: true,
|
||||
name: "救助人数",
|
||||
|
@ -146,13 +146,15 @@ const option = {
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
],
|
||||
series: [
|
||||
{
|
||||
name: "救助金额",
|
||||
data: lineData,
|
||||
type: "line", //线状图
|
||||
stack: "Total",
|
||||
symbol: "emptyCircle",
|
||||
symbolSize: 10,
|
||||
itemStyle: {
|
||||
borderColor: "#00FCFF",
|
||||
borderWidth: 1,
|
||||
|
@ -164,7 +166,7 @@ const option = {
|
|||
data: data,
|
||||
barWidth: 20,
|
||||
type: "bar",
|
||||
itemStyle: {
|
||||
itemStyle: {
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||
{
|
||||
offset: 0,
|
||||
|
|
|
@ -152,6 +152,9 @@ const option = {
|
|||
name: "救助金额",
|
||||
data: lineData,
|
||||
type: "line", //线状图
|
||||
stack: "Total",
|
||||
symbol: "emptyCircle",
|
||||
symbolSize: 10,
|
||||
itemStyle: {
|
||||
borderColor: "#00FCFF",
|
||||
borderWidth: 1,
|
||||
|
|
|
@ -13,7 +13,7 @@ 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 = [15, 23, 4, 18, 15];
|
||||
const lineData2 = [100, 200, 40, 180, 15];
|
||||
const max = data
|
||||
.concat(lineData)
|
||||
.reduce((pre, cur) => (pre > cur ? pre : cur), 0); //找到这个新数组中的最大值
|
||||
|
|
Loading…
Reference in New Issue