Commit c43bedf1 by chenwq

折线图,字颜色

1 parent 4381e42d
...@@ -162,6 +162,7 @@ export default { ...@@ -162,6 +162,7 @@ export default {
var seriesDate = this.dataList.map(item => +item.num) var seriesDate = this.dataList.map(item => +item.num)
this.lineOptions.series[0].data = seriesDate this.lineOptions.series[0].data = seriesDate
this.lineOptions.yAxis.scale = true this.lineOptions.yAxis.scale = true
this.lineOptions.tooltip.textStyle.fontSize = this.setChartFontSize(10)
// this.lineOptions.yAxis.min = Math.min(...seriesDate) // this.lineOptions.yAxis.min = Math.min(...seriesDate)
// this.lineOptions.yAxis.max = Math.max(...seriesDate) // this.lineOptions.yAxis.max = Math.max(...seriesDate)
this[this.domId].setOption(this.lineOptions) this[this.domId].setOption(this.lineOptions)
......
...@@ -6,7 +6,7 @@ function getLineOptions(obj) { ...@@ -6,7 +6,7 @@ function getLineOptions(obj) {
borderWidth: 0, borderWidth: 0,
backgroundColor: 'rgba(68,68,68,0.80)', backgroundColor: 'rgba(68,68,68,0.80)',
textStyle: { textStyle: {
color: '#FFFFFF', color: 'rgba(255,255,255,0.6)',
fontSize: '1.5px' fontSize: '1.5px'
}, },
formatter: tooltipFormatter || '', formatter: tooltipFormatter || '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!