[Bug] Point will not disappear after hover dimensions when sampling is on
Open
Nobody has claimed this yet.
bug
tooltip
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 221
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 26
Description
Version
2.0.10
Link to Minimal Reproduction
null
Steps to Reproduce
const response = await fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/stocks.json');
const data= await response.json()
console.log(data)
const spec = {
animation:false,
type: 'line',
sampling:'lttb',
samplingFactor:0.1,
// brush:{
// visible:true,
// updateElementState:false,
// zoomAfterBrush:true
// },
// dataZoom:[
// {
// orient:"bottom",
// showBackgroundChart:false,
// filterMode:"axis"
// },
// {
// orient:"left",
// showBackgroundChart:false,
// filterMode:"axis"
// }
// ],
data: {
values: data },
title: {
visible: true,
text: 'Stacked line chart'
},
stack: true,
xField: 'Date',
yField: 'Close',
seriesField: 'Symbol',
line: {
style: {
curveType: 'monotone'
}
},
point: {
style: {
size: 0,
fill: 'white',
stroke: null,
lineWidth: 2
},
state: {
dimension_hover: {
size: 10
}
}
},
legends: [{ visible: true, position: 'middle', orient: 'bottom' }]
};
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
开启samplilng,鼠标hover到dimension上,移走后point不会消失。仅在2.x复现,1.x是正常的
Current Behavior
Expected Behavior
points will disappear normally
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied TypeScript VChart reproduction using a line chart, sampling:'lttb', and point dimension_hover state. Investigate how hover state is cleared after the pointer leaves the dimension when sampling is enabled, comparing the 2.x behavior with the stated 1.x behavior. Done means the point disappears normally after hover ends.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100