与IE 11

时间:2016-06-27 08:26:06

标签: r d3.js internet-explorer-11 plotly

我想知道是否与IE11有任何兼容性问题。我尝试了以下代码,我可以在RStudio中看到来自查看器的hoverinfo。但是,如果我在IE11中打开它,则hoverinfo变为空白。

df = data.frame(a='High',
                info="this text doesn't mean anything and it's only here as a demonstration. You can replace this with anything else
                and I want to somehow wrap this text",
                start=as.Date("31/12/2015","%d/%m/%Y"),
                end = as.Date("31/12/2016","%d/%m/%Y"))
p = plot_ly()

p <- add_trace(p,
                 x = c(df$start[1], df$end[1]),  # x0, x1
                 y = c(1,1),  # y0, y1
                 mode = "lines",
                 line = list(color ="#FF6600", width = 20),
                 showlegend = F,
                 hoverinfo = "text",
                 text = gsub('\\.','.<br>',df$info[1]),
                 evaluate = T
                 #hoverinfo = "value"
)
p

RStudio Viewer: enter image description here

IE11: enter image description here

0 个答案:

没有答案