禁用工具提示一点?

Map*_*rja 4 highcharts

我的图表是这样的:

http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/3d-scatter-draggable/

我知道如果我想在highcharts中禁用工具提示效果,我需要添加到我的代码中:

 tooltip: {
   enabled: false
   }
Run Code Online (Sandbox Code Playgroud)

但我不知道如何禁用它只有一点...

    series: [{
        name: 'Reading',
        colorByPoint:
        { color: "#ff0000"},

        data: [
            // [X, Y, Z]
            [1, 8, 1],
            [1, 9, 2],
            [1, 1, 5],
            [2, 7, 2],
            [2, 3, 4],
            [4, 5, 7],
            [4, 5, 8],
            [7, 3, 3],
            [7, 8, 5],
            [10, 7, 10]
        ]},{ ------ draw a line on bottom frame
            data: [[0,0,5],[10,0,5]
        ],
        lineWidth: 1,
        marker: {
            enabled: false
        },
        color: 'rgba(0,0,0,0.51)' 
        },  ------ end draw

           {  // ------ draw a point on (right edge) bottom frame
            data: [[10.7,0,5]],                
             dataLabels: {
                enabled: true,                    
                crop: false,
                overflow: false,
                 format: 3,
            }, 
            marker: {

                enabled: false,
                states:{

                    hover: {
                        enabled: false

                    }
                }
            }

    }]
Run Code Online (Sandbox Code Playgroud)

如何禁用我添加的点的工具提示?

Hal*_*and 10

您可以使用禁用特定点的工具提示tooltip.formatter.您需要为不具有工具提示的点添加一些识别属性,然后在您的tooltip.formatter函数中检查它.

例如,你可以这样设置data(见第一点):

data: [{x:1, y:6, z:5, noTooltip: true}, [8, 7, 9], [1, 3, 4], [4, 6, 8], [5, 7, 7]]
Run Code Online (Sandbox Code Playgroud)

然后tooltip.formatter你可以这样评价:

tooltip: {
    formatter: function() {
        // If the point is going to have a tooltip
        if(!this.point.noTooltip) {
            // Mimic default tooltip contents
            return '? '+this.series.name+
                   '<br/>x: <b>'+this.point.x+
                   '</b><br/>y: <b>'+this.point.y+
                   '</b><br/>z: <b>'+this.point.z+
                   '</b><br/>';
        }

        // If tooltip is disabled
        return false;
    }
}
Run Code Online (Sandbox Code Playgroud)

请参阅此JSFiddle演示(禁用的点位于左下角的坐标[1,1,0]处).