Trouble with forward slash | XM Community
Skip to main content
Solved

Trouble with forward slash

  • September 11, 2023
  • 1 reply
  • 22 views

Forum|alt.badge.img+2

Hi all,

I have what should be a simple question. The code below is part of a dynamic chart and data.addRows adds the labels for the chart. My issue is that the label ‘Group1/Group2’ does not appear because of the forward slash (/). Could anyone please tell me how to correctly escape this character? Thank you for your help.

````````` 

data.addRows([
            ['Other', 100 - local_result],
            ['Group1/Group2', local_result],
        ]);

```````

Best answer by Nam Nguyen

@44RK44 Try change your slash to this unicode string “\u002F”. This represent the slash without being recognized as delimiter.
Let me know if it helps

View original

1 reply

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • Answer
  • September 11, 2023

@44RK44 Try change your slash to this unicode string “\u002F”. This represent the slash without being recognized as delimiter.
Let me know if it helps


Leave a Reply