delta-rho / trelliscope

Detailed Visualization of Large Complex Data in R
Other
115 stars 34 forks source link

highcharts #141

Closed jrounds closed 8 years ago

jrounds commented 8 years ago

Hi, I was hoping to see some highcharts in Trelliscope, but alas this doesn't work for me (no plot rendered):

ddo = ddo(lapply(as.list(1:10), function(i) list(k=i, v=i)))
library(magrittr)
library(highcharter)
t = tempfile()
vdb = vdbConn(t, autoYes=TRUE)
panelFn = function(v){

    highchart() %>% 
      hc_title(text = "Scatter chart with size and color") %>% 
      hc_add_serie_scatter(mtcars$wt, mtcars$mpg,
                           mtcars$drat, mtcars$hp)

}
cogFn = function(v) return(list(cog=1))
makeDisplay(ddo, panelFn=panelFn, cogFn = cogFn, name="test", conn=vdb)
view(conn=vdb)

Should it work? Or is htmlwidgets output to "case-by-case" to say yes it should?

hafen commented 8 years ago

This should work in the latest version which uses iframes by default for htmlwidgets.

jrounds commented 8 years ago

Does work thanks!

On Tue, Mar 29, 2016 at 11:28 AM, hafen notifications@github.com wrote:

Closed #141 https://github.com/tesseradata/trelliscope/issues/141.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/tesseradata/trelliscope/issues/141#event-607125698