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
目前不支持实例化后再插入plugin的方式,希望能支持,如
import F2 from '@antv/f2/lib/core'; import '@antv/f2/lib/geom/line'; import Guide from '@antv/f2/lib/plugin/guide'; import '@antv/f2/lib/component/guide'; const chart = new F2.Chart({ el: this.refs.canvas, width: 400, height: 200, // plugins: [ Guide ] }); Guide.init(chart); chart.set('plugins', [ Guide ]); // 类似于这样设置plugin chart.source([{name: 'city1', count: 12, { name: 'city2', count: 20 }]); chart.guide().text({ position: ['city1', 12], content: '阿斯顿', }); chart.line().position('name*count'); chart.render();
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
feat: add chart.registerPlugins() method. Closed #116.
dfb5637
e578106
simaQ
No branches or pull requests
目前不支持实例化后再插入plugin的方式,希望能支持,如
The text was updated successfully, but these errors were encountered: