EVOLUTION-MANAGER
Edit File: hc_responsive.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Responsive options for highcharter objects</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for hc_responsive {highcharter}"><tr><td>hc_responsive {highcharter}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Responsive options for highcharter objects</h2> <h3>Description</h3> <p>Allows setting a set of rules to apply for different screen or chart sizes. Each rule specifies additional chart options. </p> <h3>Usage</h3> <pre> hc_responsive(hc, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>hc</code></td> <td> <p>A <code>highchart</code> <code>htmlwidget</code> object.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Arguments defined in <a href="https://api.highcharts.com/highcharts/responsive">https://api.highcharts.com/highcharts/responsive</a>.</p> </td></tr> </table> <h3>Examples</h3> <pre> leg_500_opts <- list(enabled = FALSE) leg_900_opts <- list(align = "right", verticalAlign = "middle", layout = "vertical") # change the with of the container/windows to see the effect highchart() %>% hc_add_series(data = cumsum(rnorm(100))) %>% hc_responsive( rules = list( # remove legend if there is no much space list( condition = list(maxWidth = 500), chartOptions = list(legend = leg_500_opts) ), # put legend on the right when there is much space list( condition = list(minWidth = 900), chartOptions = list(legend = leg_900_opts) ) ) ) </pre> <hr /><div style="text-align: center;">[Package <em>highcharter</em> version 0.9.4 <a href="00Index.html">Index</a>]</div> </body></html>