Highcharts 将图像添加到highchart条形图
我有一个相对简单的highcharts条形图,我想知道是否有可能在每个条形图的末尾添加一个小图像,当前数字所在的位置。对于每个条,它需要是不同的图像Highcharts 将图像添加到highchart条形图,highcharts,Highcharts,我有一个相对简单的highcharts条形图,我想知道是否有可能在每个条形图的末尾添加一个小图像,当前数字所在的位置。对于每个条,它需要是不同的图像 $(function () { $('#container').highcharts({ chart: { type: 'bar' }, title: { text: 'Some Chart' }, xAxis: { categories: ['Archimed
$(function () {
$('#container').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Some Chart'
},
xAxis: {
categories: ['Archimedes','Curie','Darwin','Hawking','Newton','Pasteur'],
title: {
text: null
}
},
yAxis: {
min: 0,
title: {
text: 'Score',
align: 'high'
},
labels: {
overflow: 'justify'
}
},
tooltip: {
valueSuffix: ' percent'
},
plotOptions: {
bar: {
dataLabels: {
enabled: true
}
}
},
credits: {
enabled: false
},
series: [{
name: 'Group Team Performance',
data: [
{name: 'Archimedes', color: '#fe3932', y: 70},
{name: 'Curie', color: '#28d44e', y:66},
{name: 'Darwin', color: '#fce621',y:46},
{name: 'Hawking', color: '#003969', y:66},
{name: 'Newton', color: '#00afd5', y:64},
{name: 'Pasteur', color: '#b14fe0', y:56}
]
}
]
});
})
我创造了一个快速小提琴-
任何帮助都将不胜感激 像这样的:?只需使用dataLabels.formatter,并将选项useHTML设置为true。唯一的限制是导出服务器,它不支持HTML标记。@PawełFus不允许我为每个条设置不同的图像,是吗?当然,它允许您这样做。只需将此URL设为参数,请参见: