Highcharts/Highmaps-点悬停的光晕效果在chrome和firefox中不起作用
请检查下面的JSFIDLE var gfxPath= var图表=新的Highcharts.图表{Highcharts/Highmaps-点悬停的光晕效果在chrome和firefox中不起作用,highcharts,highmaps,Highcharts,Highmaps,请检查下面的JSFIDLE var gfxPath= var图表=新的Highcharts.图表{ chart: { renderTo: 'container' }, title: { text: 'Pattern fill plugin demo' }, xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }
chart: {
renderTo: 'container'
},
title: {
text: 'Pattern fill plugin demo'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
plotBands: [{
from: 100,
to: 200,
color: {
pattern: gfxPath + 'pattern3.png',
width: 6,
height: 6
}
}]
},
series: [{
type: 'area',
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
fillColor: {
pattern: gfxPath + 'pattern1.png',
width: 6,
height: 6
},
states: {
hover: {
halo: {
size: 8,
opacity: 1,
zIndex:10,
attributes: {
fill: '#ffffff',
'stroke-width': 1,
stroke: '#0b9de8'
}
}
}
}
}, {
type: 'column',
data: [148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6],
color: {
pattern: gfxPath + 'pattern2.png',
width: 6,
height: 6,
// VML only:
color1: 'red',
color2: 'yellow'
}
}]
})
仅当我们使用模式填充插件时,点悬停上的光晕效果在chrome和firefox中无法正确渲染。我不得不使用模式,同时想在点悬停上实现光晕效果。有什么帮助吗 只需为光晕设置更高的zIndex:
states: {
hover: {
halo: {
attributes: {
zIndex: 10
}
}
}
}