高图标记可点击禁用和启用条件基础


Highchart marker clickable disable and enable condition base?

面对新的情况,我使用Highchart开发了时间轴图表。

我想条件基础悬停禁用/启用选项是可能的。例如:我用严肃的数据添加自定义值。禁用悬停,自定义值为基础,如果可能的话,请帮助,很多问题解决了。

是的,您可以使用enabled标志设置单个点的悬停状态。您需要设置每个点,以便最好地预处理您的数据数组。代码:

$(function () {
    var $reporting = $('#reporting');
    $('#container').highcharts({
        title: {
            text: 'Mouse events demo'
        },
        subtitle: {
            text: 'On point mouse over or mouse out, the values should be reported in top right'
        },
        series: [{
            data: [29.9, 71.5, {
                y: 106.4,
                marker: {
                    states: {
                        hover: {
                            enabled: false
                        }
                    }
                }
            },
            129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
        }]
    });
});
<<p> 演示/strong>。