antvis/G2
The issue has been closed
labelFilter ε labelFormatter εθ°η¬¬δΈδΈͺεζ°δΈδΈθ΄ #4909
pearmini posted onGitHub
/**
* A recreation of this demo: https://observablehq.com/@d3/bar-chart
*/
import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
theme: 'classic',
autoFit: true,
});
chart
.interval()
.data({
type: 'fetch',
value:
'https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv',
})
.encode('x', 'letter')
.encode('y', 'frequency')
.axis('y', {
labelFormatter: (d) => console.log('formatter', d),
labelFilter: (d) => console.log('filter', d),
});
chart.render();