-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjusting Margins Triggers Appearance of Download Menu #39
Comments
Hi @majerus! Thanks for try/test the package. First of all. In the future, can you style/format the code? It's easy, just ``` at the begginig and at the end. So it's easy for who read your code. Ok. You can specify the margins with Can you try this code and tell me if it help you?
|
Thank you and sorry for forgetting to format the code. This is close to what I am hoping to figure out. Is it possible to remove the padding around the graph as well? In the link I shared there is no white-space padding around the graph. Is that possible in the R implementation? Thanks for the quick response. Again, this is impressive work. Rich |
Do you ask who to remove the padding when you use saveWidget, right?.
This will remove all the padding for all the divs and will be no more white space ;)! Before: After: I hope this is what you need XD. |
Thanks. I was able to tweak the html manually to accomplish this. I am Rich On Wed, Feb 10, 2016 at 2:56 PM, Joshua Kunst notifications@github.com
Rich Majerus |
I guess you can code this functionality ;)! I'm closing the issue. |
Thanks for all your work on this. I am new to testing out this widget and am impressed. I am trying to adjust the padding around a highchart when it is saved with saveWidget (see http://jsfiddle.net/gRYGn/4/). However, I don't seem to be able to adjust the padding and when I try to it triggers the appearance of the download menu in the upper right corner.
Example code below
mtcars %>%
group_by(cyl) %>%
summarise(ave_mpg = mean(mpg)) -> tmp
highchart(theme = hc_theme_chalk(),
hc_opts = list(marginRight = '200px')) %>% # triggers appearance of download menu and does not adjust margins
hc_title(text = "Example", style = list(color = "#F3F2F2")) %>%
hc_subtitle(text = paste("Example Date", Sys.Date()-1),
style = list(color = "#F3F2F2", fontWeight = "bold")) %>%
hc_xAxis(categories = tmp$cyl) %>%
hc_add_series(name = "mpg", type = "column", color = "#002878", showInLegend = FALSE,
dataLabels = list(align = "center", enabled = TRUE, format = "", color = "#F3F2F2"),
data = tmp$ave_mpg) %>%
hc_tooltip(crosshairs = TRUE, shared = TRUE, valueSuffix = "") %>%
hc_yAxis(title = "mpg", minorGridLineWidth = 0, gridLineWidth = 0, labels = list(format = ""), max = max(tmp$ave_mpg)
)
The text was updated successfully, but these errors were encountered: