fisheye
Previous
elementSelectByX
Next
legendFilter
Loading...
鱼眼交互,用于聚焦于局部数据。
import { Scatter } from '@ant-design/plots';import React from 'react';import { createRoot } from 'react-dom';const Demo = () => {const config ={"style": {"lineWidth": 1,"fillOpacity": 0.3},"scale": {"size": {"type": "log","range": [4, 20]}},"shapeField": "point","colorField": "continent","sizeField": "Population","yField": "LifeExpectancy","xField": "GDP","data": {"type": "fetch","value": "https://gw.alipayobjects.com/os/antvdemo/assets/data/bubble.json"},"interaction": {"fisheye": true}};return <Scatter {...config} />;};createRoot(document.getElementById('container')).render(<Demo />);
属性 | 描述 | 类型 | 默认值 |
---|---|---|---|
wait | 鱼眼更新的时间间隔,单位为毫秒 | number | 30 |
leading | 是否在时间间隔开始的时候更新鱼眼 | boolean | true |
trailing | 是否在时间间隔结束的时候更新鱼眼 | boolean | false |