【问题标题】:Highchart: Bubble heading is not showing if two bubbles intersect or comes near one another in Bubble chartHighchart:如果两个气泡在气泡图中相交或彼此靠近,则不会显示气泡标题
【发布时间】:2019-10-15 03:22:21
【问题描述】:

在 Highcharts Bubblechart 中,如果我有两个气泡彼此靠近或相交,则不会显示一个气泡顶部的名称。

有没有办法同时显示两个气泡名称。

在此通知右上角的两个气泡enter code herehttp://jsfiddle.net/htb38096/

【问题讨论】:

    标签: highcharts bubble-chart


    【解决方案1】:

    您可以为数据标签启用allowOverlap 属性:

    plotOptions: {
        series: {
            dataLabels: {
                allowOverlap: true,
                ...
            }
        }
    }
    

    现场演示: http://jsfiddle.net/BlackLabel/k23xLjmn/

    API 参考: https://api.highcharts.com/highcharts/series.bubble.dataLabels.enabled

    【讨论】:

      【解决方案2】:

      dataLabels 上试试这个:

      dataLabels: {
            enabled: true,
            useHTML: true,             
            style: { textShadow: 'none',fontSize: '10px',color:'black' },
            formatter: function() {
                   return this.point.name;
            },
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-10-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-02-13
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多