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

Hide axis labels/ticks #16

Closed Paul-James closed 9 years ago

Paul-James commented 9 years ago

I'm generating a bar graph that has a lot of bars. The xAxis labels are illegible and pointless for my purposes, yet I can't turn them off (I'm using the addCategoryAxis type). Code here (first graph) shows use of a hidden parameter inside the xAxis() function, but that parameter actually isn't doing anything (the ticks = 1 is doing the work). For a categorical axis, is there a way to hide labels?

timelyportfolio commented 9 years ago

Thanks so much for the report. You are correct. There is some logic in there for the sort-of-working facets that overrides hidden for the primary x and y axes. I'll get to work on it. If an emergency, I can show how to remove these with tasks.

timelyportfolio commented 9 years ago

@Paul-James, so I believe it is patched up and ready-to-go. Now xAxis(hidden=TRUE) or yAxis(hidden=TRUE) will turn it off.

devtools::install_github("timelyportfolio/rcdimple")
Paul-James commented 9 years ago

Great! It's not a dire emergency, thank you for working on this and I'll install the branch to test it as well.

timelyportfolio commented 9 years ago

I merged into master after fairly fully testing it. @Paul-James, please let me know if you find any problems/bugs.