EVOLUTION-MANAGER
Edit File: hc_drilldown.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: Drilldown 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_drilldown {highcharter}"><tr><td>hc_drilldown {highcharter}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Drilldown options for highcharter objects</h2> <h3>Description</h3> <p>Options for drill down, the concept of inspecting increasingly high resolution data through clicking on chart items like columns or pie slices. The drilldown feature requires the drilldown.js file to be loaded, found in the modules directory of the download package, or online at code.highcharts.com/modules/drilldown.js. </p> <h3>Usage</h3> <pre> hc_drilldown(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/drilldown">https://api.highcharts.com/highcharts/drilldown</a>.</p> </td></tr> </table> <h3>Examples</h3> <pre> library(highcharter) library(dplyr) library(purrr) df <- tibble( name = c("Animals", "Fruits"), y = c(5, 2), drilldown = tolower(name) ) df hc <- highchart() %>% hc_title(text = "Basic drilldown") %>% hc_xAxis(type = "category") %>% hc_legend(enabled = FALSE) %>% hc_plotOptions( series = list( boderWidth = 0, dataLabels = list(enabled = TRUE) ) ) %>% hc_add_series( data = df, type = "column", hcaes(name = name, y = y), name = "Things", colorByPoint = TRUE ) dfan <- data.frame( name = c("Cats", "Dogs", "Cows", "Sheep", "Pigs"), value = c(4, 3, 1, 2, 1) ) dffru <- data.frame( name = c("Apple", "Organes"), value = c(4, 2) ) dsan <- list_parse2(dfan) dsfru <- list_parse2(dffru) hc <- hc %>% hc_drilldown( allowPointDrilldown = TRUE, series = list( list( id = "animals", data = dsan ), list( id = "fruits", data = dsfru ) ) ) hc </pre> <hr /><div style="text-align: center;">[Package <em>highcharter</em> version 0.9.4 <a href="00Index.html">Index</a>]</div> </body></html>