This commit is contained in:
姚宇浩 2024-04-18 17:11:32 +08:00
parent 502f01ad65
commit 2acb95ed92
3 changed files with 9 additions and 4 deletions

View File

@ -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,

View File

@ -152,6 +152,9 @@ const option = {
name: "救助金额",
data: lineData,
type: "line", //线
stack: "Total",
symbol: "emptyCircle",
symbolSize: 10,
itemStyle: {
borderColor: "#00FCFF",
borderWidth: 1,

View File

@ -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); //