feat:对接景区接口
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
return props.list.map((item) => {
|
||||
return {
|
||||
name: item.name,
|
||||
value: item.count,
|
||||
value: item.duration,
|
||||
itemStyle: {
|
||||
color: {
|
||||
type: 'linear',
|
||||
@@ -61,7 +61,7 @@
|
||||
return props.list.map((item) => {
|
||||
return {
|
||||
name: item.name,
|
||||
value: item.count,
|
||||
value: item.duration,
|
||||
itemStyle: {
|
||||
color: '#fff',
|
||||
opacity: 1
|
||||
@@ -70,7 +70,7 @@
|
||||
})
|
||||
}
|
||||
const setYAxisData = () => {
|
||||
return props.list.map((item) => item.count)
|
||||
return props.list.map((item) => item.duration)
|
||||
}
|
||||
const init = () => {
|
||||
if (!params) {
|
||||
@@ -110,10 +110,10 @@
|
||||
axisTick: {
|
||||
show: false
|
||||
},
|
||||
data: [],
|
||||
axisLabel: {
|
||||
show: false
|
||||
}
|
||||
},
|
||||
data: []
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
@@ -122,10 +122,8 @@
|
||||
axisLine: 'none',
|
||||
show: true,
|
||||
axisLabel: {
|
||||
textStyle: {
|
||||
color: '#fff',
|
||||
fontSize: fitChartSize(12)
|
||||
},
|
||||
color: '#fff',
|
||||
fontSize: fitChartSize(12),
|
||||
verticalAlign: 'bottom',
|
||||
padding: [0, 0, 6, 0],
|
||||
inside: true,
|
||||
@@ -150,7 +148,7 @@
|
||||
type: 'bar',
|
||||
barWidth: fitChartSize(8),
|
||||
showBackground: true,
|
||||
barBorderRadius: [0, 0, 0, 0],
|
||||
borderRadius: [0, 0, 0, 0],
|
||||
backgroundStyle: {
|
||||
color: 'rgba(0, 150, 255, 0.15)'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user