Highmaps如何将图形添加到工具提示

时间:2020-02-17 15:37:31

标签: highcharts tooltip

我想在地图的工具提示中显示一个小图表:https://jsfiddle.net/Joh_Christ/24ey5sqm/2/

我添加了此代码

        tooltip: {
        useHTML: true,
        formatter: function () {
            setTimeout(function () {
                $("#hc-tooltip").highcharts({
                    series: [{
                        data: [12, 23]
                    }]
                });
            }, 40)
            return '<div id="hc-tooltip"></div>';
        }
    },

我还必须做什么?

0 个答案:

没有答案
相关问题