|
@@ -96,7 +96,8 @@ export default {
|
|
const data3 = val.bugDisByDate.yAxis.map(item => ({
|
|
const data3 = val.bugDisByDate.yAxis.map(item => ({
|
|
...item,
|
|
...item,
|
|
type: 'line',
|
|
type: 'line',
|
|
- smooth: true
|
|
|
|
|
|
+ smooth: true,
|
|
|
|
+ itemStyle: { normal: { label: { show: true }}}
|
|
}))
|
|
}))
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
echarts.init(document.getElementById('line-echarts' + this.randomId)).setOption({
|
|
echarts.init(document.getElementById('line-echarts' + this.randomId)).setOption({
|
|
@@ -106,13 +107,7 @@ export default {
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
xAxis: [{ type: 'category', data: val.bugDisByDate.xAxis ? val.bugDisByDate.xAxis : ['未知'], axisTick: { alignWithLabel: true }}],
|
|
xAxis: [{ type: 'category', data: val.bugDisByDate.xAxis ? val.bugDisByDate.xAxis : ['未知'], axisTick: { alignWithLabel: true }}],
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
- series: val.bugDisByDate.yAxis[0].data <= 0 ? [{ name: '直接访问', type: 'line', smooth: true, data: [0] }] : [{ data: data3, type: 'line', itemStyle: { normal: { label: { show: true }}}}]
|
|
|
|
- // series: [{
|
|
|
|
- // data: data3,
|
|
|
|
- // type: 'line',
|
|
|
|
- // // 显示数值
|
|
|
|
- // itemStyle: { normal: { label: { show: true }}}
|
|
|
|
- // }]
|
|
|
|
|
|
+ series: val.bugDisByDate.yAxis[0].data <= 0 ? [{ name: '直接访问', type: 'line', smooth: true, data: [0] }] : data3
|
|
|
|
|
|
})
|
|
})
|
|
}, 200)
|
|
}, 200)
|
|
@@ -120,7 +115,8 @@ export default {
|
|
const data = val.bugDisByMember.yAxis.map(item => ({
|
|
const data = val.bugDisByMember.yAxis.map(item => ({
|
|
...item,
|
|
...item,
|
|
type: 'bar',
|
|
type: 'bar',
|
|
- barWidth: '20px'
|
|
|
|
|
|
+ barWidth: '20px',
|
|
|
|
+ itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#409EFF' }}}}
|
|
}))
|
|
}))
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
echarts.init(document.getElementById('lineShow' + this.randomId)).setOption({
|
|
echarts.init(document.getElementById('lineShow' + this.randomId)).setOption({
|
|
@@ -138,7 +134,8 @@ export default {
|
|
const data1 = val.bugDisByPri.yAxis.map(item => ({
|
|
const data1 = val.bugDisByPri.yAxis.map(item => ({
|
|
...item,
|
|
...item,
|
|
type: 'bar',
|
|
type: 'bar',
|
|
- barWidth: '20px'
|
|
|
|
|
|
+ barWidth: '20px',
|
|
|
|
+ itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#409EFF' }}}}
|
|
}))
|
|
}))
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
echarts.init(document.getElementById('barShow' + this.randomId)).setOption({
|
|
echarts.init(document.getElementById('barShow' + this.randomId)).setOption({
|
|
@@ -177,7 +174,8 @@ export default {
|
|
const data = res6.data.yaxis.map(item => ({
|
|
const data = res6.data.yaxis.map(item => ({
|
|
...item,
|
|
...item,
|
|
type: 'line',
|
|
type: 'line',
|
|
- smooth: true
|
|
|
|
|
|
+ smooth: true,
|
|
|
|
+ itemStyle: { normal: { label: { show: true }}}
|
|
}))
|
|
}))
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
echarts.init(document.getElementById('line-echarts' + this.randomId)).setOption({
|
|
echarts.init(document.getElementById('line-echarts' + this.randomId)).setOption({
|
|
@@ -197,7 +195,8 @@ export default {
|
|
const data = res2.data.yaxis.map(item => ({
|
|
const data = res2.data.yaxis.map(item => ({
|
|
...item,
|
|
...item,
|
|
type: 'bar',
|
|
type: 'bar',
|
|
- barWidth: '20px'
|
|
|
|
|
|
+ barWidth: '20px',
|
|
|
|
+ itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#409EFF' }}}}
|
|
}))
|
|
}))
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
echarts.init(document.getElementById('lineShow' + this.randomId)).setOption({
|
|
echarts.init(document.getElementById('lineShow' + this.randomId)).setOption({
|
|
@@ -218,7 +217,8 @@ export default {
|
|
const data = res3.data.yaxis.map(item => ({
|
|
const data = res3.data.yaxis.map(item => ({
|
|
...item,
|
|
...item,
|
|
type: 'bar',
|
|
type: 'bar',
|
|
- barWidth: '20px'
|
|
|
|
|
|
+ barWidth: '20px',
|
|
|
|
+ itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#409EFF' }}}}
|
|
}))
|
|
}))
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
echarts.init(document.getElementById('barShow' + this.randomId)).setOption({
|
|
echarts.init(document.getElementById('barShow' + this.randomId)).setOption({
|