Open tfp-Im opened 8 months ago
the setTimeout function may be adding values to the series, but as long as xAxis stays the same chart will not change.
resize and Graph highlights disappear
What does this mean ?
the setTimeout function may be adding values to the series, but as long as xAxis stays the same chart will not change.
resize and Graph highlights disappear
What does this mean ?
I added that part by mistake.So I deleted it. thank you. What I want to ask is that when the graph resize event occurs and the bar part of the graph is hovered, the highlight remains. I think it is a bug that the highlight does not disappear.
the setTimeout function may be adding values to the series, but as long as xAxis stays the same chart will not change.
resize and Graph highlights disappear
What does this mean ?
the setTimeout function may be adding values to the series, but as long as xAxis stays the same chart will not change.
resize and Graph highlights disappear
What does this mean ?
I added that part by mistake.So I deleted it. thank you. What I want to ask is that when the graph resize event occurs and the bar part of the graph is hovered, the highlight remains. I think it is a bug that the highlight does not disappear.
Additionally, I believe that the reason this problem occurs is because the mouseout event is not executed when the resize event occurs.
the setTimeout function may be adding values to the series, but as long as xAxis stays the same chart will not change.
resize and Graph highlights disappear
What does this mean ?
please, cant review my comment
Version
e.g. 5.2.2
Link to Minimal Reproduction
https://codepen.io/h2yn/pen/VwNpBBd
Steps to Reproduce
var dom = document.getElementById('chart-container'); var myChart = echarts.init(dom, null, { renderer: 'canvas', useDirtyRect: false }); var app = {};
var option;
option = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, yAxis: { type: 'value' }, series: [ { data: [120, 200, 150, 80, 70, 110, 130], type: 'bar', showBackground: true, backgroundStyle: { color: 'rgba(180, 180, 180, 0.2)' }, emphasis: { itemStyle: { color: "rgba(75, 137, 255, 0.6)", }, }, } ] };
if (option && typeof option === 'object') { myChart.setOption(option); }
this.test();
window.addEventListener('resize', myChart.resize);
function test(){ setTimeout(()=>{ console.log("test"); myChart.setOption(option); myChart.resize(); this.test(); },1000) };
Current Behavior
Expected Behavior
Environment
Any additional comments?