对于heatmap而言,annotation的标注比较麻烦,下面的案例列举了如何进行annotation
annotations: [
{
labelOptions: {
backgroundColor: 'rgba(255,255,255,0)',
borderColor: '#d9333f',
x: 30,
y: 40,
style: {
fontSize: '8px',
color: '#d9333f'
}
},
labels: [
{
point: ['test1'],
text: '{point.filename}',
},
{
point: ['test2'],
text: '{point.filename}',
},
{
point: ['test3'],
text: '{point.filename}'
}
]
}
]