google / google-visualization-issues

288 stars 35 forks source link

Geochart - Fails when label contains emoji 🇺🇸 #2964

Open drveresh opened 1 year ago

drveresh commented 1 year ago

I am using geochat to display a simple map that shows a number for a few countries, but it is failing to render (blank or all grey) when the label contains emoji like "🇺🇸 United States".

dlaliberte commented 1 year ago

An emoji in a tooltip might work if you add the isHtml property to the column. Have you tried that?

    data.addColumn({
      id: 'tooltip',
      label: 'Column Label',
      type: 'string',
      role: 'tooltip',
      p: {role: 'tooltip', html: true},
    });

Can you put together a simple jsfiddle example showing the problem you are having?