microsoft / charticulator

Interactive Layout-Aware Construction of Bespoke Charts
Other
833 stars 115 forks source link

Error when using a field having a Non-English (Chinese) name in a PlotSegment #1035

Open ljhubonog opened 2 years ago

ljhubonog commented 2 years ago

When I try to use a field having a non-English (in my case Simplified Chinese) name in my PlotSegment, I get the following error: image

This happens whether I drag or select the field for the X or Y axis of a PlotSegment. The diagnostic text is: `

SyntaxError 
    Expected "(", "not", name, operator, value, or variable but "周" found. 
     undefined 

in t
in t
in div
in div
in t
in div
in t
in div
in div
in div
in section
in div
in t

`

If I simply rename the fields to English names in my data source, the bug goes away.

I've tried this in charticulator.com, as well as using Power BI's Charticulator Visual v1.5.0

This problem appears to be similar to the already closed #880, but that fix doesn't address this problem.

zBritva commented 2 years ago

As workaround try to use quoted names for columns headers:

"категория" "значение"
кат1 1
кат2 2

There is issue on parsing expression inside pegjs.