나는 사진 삼각형을 추가 할
시리즈 -> 라벨 -> 포맷터 달성하기 위해 부자와 그림을 추가로 설정
{
name: '峰值',
type: 'bar',
stack: 'b',
yAxisIndex: 0,
barGap: '-100%',
barWidth: 15,
data: [100, 200],
label: {
normal: {
show: true,
position: 'right',
distance: 10,
rich: {
img1: {
backgroundColor: {
image: maxNum
}
}
},
formatter: function (param) {
var res = '';
res += param.value
+ '\n {img1|}'
return res;
},
textStyle: {
color: '#ccc',
fontSize: '16'
}
}
},
itemStyle: {
normal: {
color: '#fff'
}
},
z: 1
},
사진 경로는, 당신은 또한 이미지에 직접 쓸 수 있습니다 : 다시
뿐만 아니라 풍부한 캔 사진을 추가, 당신은 부자에 추가 할 수있는 스타일을 수정하려면,