Highcharts工具提示无法正确显示utf-8

时间:2020-10-19 15:25:34

标签: highcharts utf-8

我用欧洲地区制作了一张地图:see fiddle

这是我的工具提示:

  tooltip: {
useHTML: true,
outside: false,
formatter: function() {

            return '<span>' + this.point.country + '<br>' + this.point.land + '<br>' + this.point.name + '<br>' + this.point.id + '<br>' + this.point.nuts + '<br>' + this.point.level + '<br>' + this.point.datum + '</span>';


                      }
        },

不幸的是,工具提示无法正确显示utf-8字符。我能做什么? enter image description here

1 个答案:

答案 0 :(得分:0)

我发现了问题。工具提示从geojson的元数据中提取了name列。重命名数据列即可解决该问题。