【问题标题】:Dimple TooltipText EventHandler IssueDimple TooltipText EventHandler 问题
【发布时间】:2014-12-12 18:10:03
【问题描述】:

我试图弄清楚为什么e.yValueTooltipText 中返回null,但在使用EventHandlerconsole.log 时返回正确的字符串值(y 轴是分类的)

    var series3 = chart3.addSeries("finaid", dimple.plot.pie);
    series3.getTooltipText = function (e) {
        return [
            "Inst: " + e.yValue
            //"# of Students: " + e.zValue*1000
        ]
    }
    series3.addEventHandler("click", function (e) {
        console.log(e.yValue);
    })

e.zValue 按预期工作。

有什么建议吗?谢谢

【问题讨论】:

    标签: d3.js dimple.js


    【解决方案1】:

    找到这个eventArgs in dimple.js appear incomplete

    e.y 返回相应的字符串

    【讨论】:

      猜你喜欢
      • 2010-09-28
      • 1970-01-01
      • 2022-01-12
      • 2020-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多