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

X-Axis labels not visible on Firefox, but visible elsewhere #32

Open najsaqib opened 7 years ago

najsaqib commented 7 years ago

I am wondering if anyone else has had this issue. Take for example, this population pyramid by Kyle Walker that uses rcdimple:

https://rpubs.com/walkerke/india_pyramid

If I open the page on Firefox, the chart at the bottom of the page looks like this:

india1

However, if I open the same link on Internet Explorer, the x-axis labels appear just fine:

india2

I am using the latest version of Firefox as of this point (version 49.0.2)

timelyportfolio commented 7 years ago

Thanks for the report. Unfortunately, I will not be able to debug thoroughly for a while, but we can resolve temporarily by adding the set_bounds function to the pipeline.

 %>% set_bounds(x = "10%", y = "15%", width = "90%", height = "80%")
najsaqib commented 7 years ago

Thanks. I got my app to display properly on my machine by changing the height parameter in the set_bounds function to 65%. I suppose this might vary depending on the user's screen resolution?

Also, I'll take this opportunity to state that I truly appreciate your work on this. Dimple is pretty awesome and I much prefer the syntax of this implementation than the syntax for rCharts. Really looking forward to playing around with this a bit more, especially with respect to the storyboard function that I find to be quite useful.