【问题标题】:Change mouseover point in highcharts更改高图中的鼠标悬停点
【发布时间】:2013-09-23 08:14:12
【问题描述】:

谁能帮我解决我的问题。

我有这个饼图,

当我将鼠标悬停在它上面时,我需要更改点(段)

你能给我建议的最好方法是什么?

可能是这样,换点,但我不知道该怎么做

plotOptions: {
        series:{
            point:{
                events: {
                    mouseOver: function( e ){
                        console.log( this )
                    }
                }
            }
        }

    },

【问题讨论】:

    标签: javascript jquery graphics svg highcharts


    【解决方案1】:

    尝试使用element.attr() 仅更新图形,请参阅:http://jsfiddle.net/rh5fz92q/

        plotOptions: {
            pie: {
                point: {
                    events: {
                        mouseOver: function(e){
                            this.defaultR = this.graphic.r;
                            this.graphic.attr({
                                r: 200
                            });
                        },
                        mouseOut: function(e){
                            this.graphic.attr({
                                r: this.defaultR
                            });
                        }
                    }
                }
            }
        }, 
    

    【讨论】:

    • 不幸的是,小提琴不再可用。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-10
    • 2010-11-30
    • 1970-01-01
    相关资源
    最近更新 更多