私は写真の三角形を追加したい
シリーズ- >ラベルに- >フォーマッタ達成するために豊富で、画像を追加するために設定されています
{
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
},
写真はパス、あなたはまた、画像に直接書き込むことができますバックを
だけでなく、豊富な画像を追加することができますが、スタイルを変更したい場合は、豊かで追加することができ、