Open gungun0613 opened 10 months ago
import { Chart } from '@antv/g2';
const data = [ { year: 56, sales: 12540 }, { year: 26, sales: 5954 }, { year: 12, sales: 2345 }, { year: -5, sales: null }, { year: 0, sales: null }, ];
const chart = new Chart({ container: 'container', autoFit: true, });
chart.interval().data(data).encode('x', 'year').encode('y', 'sales');
chart.render();
红色框框里面的柱子不显示tooltip
import { Chart } from '@antv/g2';
const data = [ { year: 56, sales: 12540 }, { year: 26, sales: 5954 }, { year: 12, sales: 2345 }, { year: -5, sales: null }, { year: 0, sales: null }, ];
const chart = new Chart({ container: 'container', autoFit: true, });
chart.interval().data(data).encode('x', 'year').encode('y', 'sales');
chart.render();
红色框框里面的柱子不显示tooltip