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
系统: 浏览器:Chrome
The text was updated successfully, but these errors were encountered:
同样的问题出现在以下的 demo 里面:
import { Chart } from '@antv/g2'; const data = [ { genre: 'Shooter', sold: 350 }, { genre: 'Sports', sold: 275 }, { genre: 'Other', sold: 150 }, { genre: 'Action', sold: 120 }, { genre: 'Strategy', sold: 115 }, ]; const chart = new Chart({ container: 'container', }); const TOPN = 2; chart .interval() .data(data) .encode('x', 'genre') .encode('y', 'sold') .encode('color', (_, index) => (index > TOPN - 1 ? 'low' : 'high')) .scale('color', { domain:['high', 'low'], range: ['red', 'blue'], }); chart.render();
@xiaoiver 有空可以看一下?
Sorry, something went wrong.
文本没展示全的问题已经解决: antvis/G#1313
xiaoiver
No branches or pull requests
系统:
浏览器:Chrome
The text was updated successfully, but these errors were encountered: