timelyportfolio / rcdimple

htmlwidgets for rCharts + dimple
http://www.buildingwidgets.com/blog/2015/3/18/week-11-dimple-as-htmlwidget
MIT License
28 stars 9 forks source link

size of plot in browser #26

Open ghost opened 8 years ago

ghost commented 8 years ago

i run r markdown ioslides with a dimple chart and it plots perfectly in the preview, but not in the browser.

this is perfect [rstudio]: preview rstudio.

this is not [browser]: selection_004

I have tried to set the plot size with set_bounds(x = 50, y = 50, width = 600, height = 450) [*]. This give the problem that the rollover label wraps to the wrong side, so you can't read what's there:

selection_005

The data that I use are from a client, and I can't reproduce the problem with a stardard dataset like mtcars.

[*] the documentation terms this boundary setting sometimes as "setBounds" and sometimes as "set_bounds".

timelyportfolio commented 8 years ago

Are you setting an explicit height and width on the chart?

dimple(..., height = , width = )

I know there are quite a few issues/complications when combining ioslides with htmlwidgets, see https://github.com/ramnathv/htmlwidgets/issues/129.

ghost commented 8 years ago

yes, I have tried many combinations - with and without size, set_bounds. I don't have the problem with a normal markdown or in slidy. It seems to be related to ioslides.