tooltip: {
trigger: 'axis',
axisPointer: {
type: 'line',
lineStyle: {
color: 'rgba(0,0,0,0.2)',
width: 1,
type: 'solid'
}
},
},
legend: {
data: ['topic0', 'topic1', 'topic2', 'topic3', 'topic4']
},
dataZoom: [
{
show: true,
realtime: true,
start:
45,
end: 85
},
{
type: 'inside',
realtime: true,
start: 45,
end: 85
}
],
singleAxis: {
top: 50,
bottom: 50,
axisTick: {},
axisLabel: {},
type: 'time',
axisPointer: {
animation: true,
label: {
show: true
}
},
splitLine: {
show: true,
lineStyle: {
type: 'dashed',
opacity: 0.2
}
}
},
series: [
{
type: 'themeRiver',
clickable:true,
data: dataset
// itemStyle: itemStyle,
}
]
myChart.setOption(option);
myChart.on('mouseover','series', function (params) {
console.log("yes");
console.log(params);
General Questions
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
Issue Type
Issue Details
你好,我的代码使用了themeriver,但是它是本身就不支持鼠标事件的相应吗?
Expected Behavior
点击某条河流,有鼠标事件响应
Current Behavior
N
Online Example
var dom = document.getElementById("container");
var myChart = echarts.init(dom,'macarons',{renderer: 'svg'});
var app = {};
var option = {
};
});
Topics
Anything Else We Need to Know
Environment
ECharts version;ECharts 版本: {4}
It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}