Skip to content

🐛 [BUG] Pie/Column/Bar not render correctly when field name contains asterisk character #3590

Answered by hustcc
lessmost asked this question in Q&A
Discussion options

You must be logged in to vote

* 在 G2 4.x 中属于是关键词,在代码中会用于分割:

import { Chart } from '@antv/g2';

const chart = new Chart();

chart
  .interval()
  .position('x*y') // 👈🏻 这里

chart.render();

在 4.x 中无解,这个在 G2 5.0 中默认已经解决了。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hustcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #3491 on May 29, 2023 03:42.