-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
bug 🐛Something isn't workingSomething isn't workingresolvedThis issue has been resolved and is now available in the latest releaseThis issue has been resolved and is now available in the latest release
Description
Describe the bug / 问题描述
折线图开启x轴slider时,拖动slider时报错。
复现代码
import { Chart } from '../src';
const chart = new Chart({ container: 'container', autoFit: true });
chart.options({
slider: {
x: {
position: 'bottom',
values: [0, 1],
},
},
type: 'line',
data: [
{
'a6fdba07-791b-42b5-83e4-ead8a27f4867': 39,
'20c7d895-8657-47e7-9eeb-7af5601010f2': 7540,
'012e9175-db17-4a0f-b361-bbacafebaf6d': '2025-11-13',
$$datum_index$$: 74,
},
{
'a6fdba07-791b-42b5-83e4-ead8a27f4867': 14,
'20c7d895-8657-47e7-9eeb-7af5601010f2': 7554,
'012e9175-db17-4a0f-b361-bbacafebaf6d': '2025-11-14',
$$datum_index$$: 75,
},
{
'a6fdba07-791b-42b5-83e4-ead8a27f4867': 1,
'20c7d895-8657-47e7-9eeb-7af5601010f2': 7555,
'012e9175-db17-4a0f-b361-bbacafebaf6d': '2025-11-15',
$$datum_index$$: 76,
},
{
'a6fdba07-791b-42b5-83e4-ead8a27f4867': 4,
'20c7d895-8657-47e7-9eeb-7af5601010f2': 7559,
'012e9175-db17-4a0f-b361-bbacafebaf6d': '2025-11-16',
$$datum_index$$: 77,
},
{
'a6fdba07-791b-42b5-83e4-ead8a27f4867': 49,
'20c7d895-8657-47e7-9eeb-7af5601010f2': 7608,
'012e9175-db17-4a0f-b361-bbacafebaf6d': '2025-11-17',
$$datum_index$$: 78,
},
{
'a6fdba07-791b-42b5-83e4-ead8a27f4867': 35,
'20c7d895-8657-47e7-9eeb-7af5601010f2': 7643,
'012e9175-db17-4a0f-b361-bbacafebaf6d': '2025-11-18',
$$datum_index$$: 79,
},
{
'a6fdba07-791b-42b5-83e4-ead8a27f4867': 50,
'20c7d895-8657-47e7-9eeb-7af5601010f2': 7693,
'012e9175-db17-4a0f-b361-bbacafebaf6d': '2025-11-19',
$$datum_index$$: 80,
},
],
encode: {
x: '012e9175-db17-4a0f-b361-bbacafebaf6d',
y: '20c7d895-8657-47e7-9eeb-7af5601010f2',
},
labels: [
{
text: '20c7d895-8657-47e7-9eeb-7af5601010f2',
transform: [
{
type: 'exceedAdjust',
bounds: 'main',
},
],
},
],
});
chart.render();Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
拖动x轴slider隐藏部分x轴即可
Version / 版本
🆕 5.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他
Metadata
Metadata
Assignees
Labels
bug 🐛Something isn't workingSomething isn't workingresolvedThis issue has been resolved and is now available in the latest releaseThis issue has been resolved and is now available in the latest release