feat: chart - line 添加tooltip

This commit is contained in:
zhangyu
2021-07-06 16:34:10 +08:00
parent 036cc0b050
commit c08ceb1966
4 changed files with 24 additions and 4 deletions

View File

@@ -14,12 +14,14 @@ const line = {
appendToBody: true,
trigger: 'axis',
textStyle: {
width: 20,
width: '20px',
overflow: 'truncate'
},
// formatter: () =>{
// return '1'
// }
className: 'nz-chart-tooltip',
extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);max-width: 300px !important'
},
xAxis: {
type: 'time'
@@ -66,12 +68,14 @@ const lineWithStatistics = {
appendToBody: true,
trigger: 'axis',
textStyle: {
width: 20,
width: '20px',
overflow: 'truncate'
},
// formatter: () =>{
// return '1'
// }
className: 'nz-chart-tooltip',
extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);max-width: 300px !important'
},
xAxis: {
type: 'time'
@@ -107,12 +111,14 @@ const lineStack = {
appendToBody: true,
trigger: 'axis',
textStyle: {
width: 20,
width: '20px',
overflow: 'truncate'
},
// formatter: () =>{
// return '1'
// }
className: 'nz-chart-tooltip',
extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);max-width: 300px !important'
},
xAxis: {
type: 'time'