|
@@ -86,7 +86,8 @@ export default {
|
|
const data = res.bugDisByDate.yAxis.map(item => ({
|
|
const data = res.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({
|
|
@@ -103,7 +104,8 @@ export default {
|
|
const lineShow = res.bugDisByMember.yAxis.map(item => ({
|
|
const lineShow = res.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({
|
|
@@ -119,7 +121,8 @@ export default {
|
|
const barShow = res.bugDisByPri.yAxis.map(item => ({
|
|
const barShow = res.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({
|
|
@@ -150,7 +153,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({
|
|
@@ -170,7 +174,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({
|
|
@@ -189,7 +194,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({
|