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
whatever size or align I set, still the same effect
The text was updated successfully, but these errors were encountered:
Maybe try fontSize instead of size can solve your problem?
fontSize
size
import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', autoFit: true, }); chart.title({ title: 'hello', size: 40, titleFontSize: 30 }); 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: '.0%' }); chart.render();
Sorry, something went wrong.
got it, use title as prefix, and set GText props, tks
You‘re welcome, feel free to tell us if you meet more problems!
No branches or pull requests
whatever size or align I set, still the same effect
The text was updated successfully, but these errors were encountered: