forked from mt-fe-group/mt-yd-ui
update 修改当前检测数据的图例配置
This commit is contained in:
parent
b9ac64ab13
commit
127347fab0
@ -105,17 +105,31 @@ const FakeChart = {
|
||||
calcMaxHeight,
|
||||
chart: null,
|
||||
defaultOpts: {
|
||||
grid: {
|
||||
left: '5%',
|
||||
right: '12%',
|
||||
top: '20%',
|
||||
bottom: '10%'
|
||||
},
|
||||
title: {
|
||||
text: i18n.t('inspect.typeCount')
|
||||
},
|
||||
tooltip: {},
|
||||
legend: {
|
||||
orient: 'vertical',
|
||||
type: 'scroll',
|
||||
top: 10,
|
||||
right: 20,
|
||||
data: [
|
||||
/** dynamic */
|
||||
]
|
||||
right: 0,
|
||||
width: '12%',
|
||||
/** 修复文本太长时显示问题 */
|
||||
formatter: function(name) {
|
||||
return echarts.format.truncateText(name, 120, '14px Microsoft Yahei', '...')
|
||||
},
|
||||
tooltip: {
|
||||
show: true
|
||||
},
|
||||
/** end */
|
||||
data: []
|
||||
},
|
||||
xAxis: {
|
||||
data: [
|
||||
|
Loading…
Reference in New Issue
Block a user