We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', theme: 'classic', autoFit: true, padding: 'auto', }); chart .interval() .coordinate({ transform: [{ type: 'transpose' }] }) .data([ { task: 'task0', startTime: '2023-06-28 03:30:33.900123', endTime: '2023-06-28 03:30:33.900678', status: '0', }, { task: 'task0', startTime: '2023-06-28 03:30:33.901123', endTime: '2023-06-28 03:30:33.902678', status: '1', }, ]) .encode('x', 'task') .encode('y', [(d) => new Date(d.startTime), (d) => new Date(d.endTime)]) chart.render();
The text was updated successfully, but these errors were encountered:
似乎第一个条的两个时间是一个时间?
Sorry, something went wrong.
目前 G2 支持的最小时间单位是毫秒,但是这个地方出现了微秒,所以无法处理了。
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: