Commit 624b27d8 by 王志慧

commit

1 parent 9f3ce25f
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
// let reg = /(\d{4})-(\d{1,2})-(\d{1,2})/ // let reg = /(\d{4})-(\d{1,2})-(\d{1,2})/
// const time = currentData.origin.date.replace(reg, '$1年$2月$3日') // const time = currentData.origin.date.replace(reg, '$1年$2月$3日')
tooltipEl.innerHTML = `<div class="time">${currentData.origin.date}</div> tooltipEl.innerHTML = `<div class="time">${currentData.origin.date}</div>
<div class="item flex"><span class="arc" style="color:#3975C6;">●</span>预约到店:${ev.items[0].value}</div> <div class="item flex"><span class="arc" style="color:#FA7C0B;">●</span>预约到店:${ev.items[0].value}</div>
<div class="item flex"><span class="arc" style="color:#FA7C0B;">●</span>实际到店:${ev.items[1].value}</div>` <div class="item flex"><span class="arc" style="color:#3975C6;">●</span>实际到店:${ev.items[1].value}</div>`
tooltipEl.style.opacity = 1 tooltipEl.style.opacity = 1
tooltipEl.style.left = currentData.x - 140 / 2 + 'px' tooltipEl.style.left = currentData.x - 140 / 2 + 'px'
tooltipEl.style.top = currentData.y - 45 - 15 + 'px' tooltipEl.style.top = currentData.y - 45 - 15 + 'px'
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
tooltipEl.style.opacity = 0 tooltipEl.style.opacity = 0
} }
}) })
this.chart.line().position('date*value').shape('smooth').color('type', ['#3975C6', '#FA7C0B']) this.chart.line().position('date*value').shape('smooth').color('type', [ '#FA7C0B','#3975C6'])
this.chart.legend(false) this.chart.legend(false)
this.chart.render() this.chart.render()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!