purrr::imap you could split your data by years and loop over the resulting list to convert your data to the nested list object required by
hc_drilldown. Note: It's important to make the
numeric and to pass a unnamed list.
library(tidyverse) library(highcharter) library(lubridate) series <- split(df, year(df$date)) %>% purrr::imap(function(x, y) list(id = as.numeric(y), data = list_parse2(x))) # Unname list names(series) <- NULL highchart() %>% hc_chart(type = "column") %>% hc_title(text = "Example Drilldown") %>% hc_xAxis(type = "category") %>% hc_legend(enabled = FALSE) %>% hc_plotOptions(series = list(boderWidth = 2, dataLabels = list(enabled = TRUE))) %>% hc_add_series(data = dfDD, name = "Mean", colorByPoint = TRUE) %>% hc_drilldown(allowPointDrilldown = TRUE, series = series)
- R: How to create a Drilldown Highchart using loops
- How to create doughnut highchart using angular JS
- how to auto create pdf using highchart graphs
- How to create a drilleable bar graph in jsp page using open source charts API
- How to create multiple highchart and print in HTML page by using for loop?
- how to display drilldown column highchart using json array objects - 3 level drilldown column highchart
- How to drilldown a pie highchart into multiple containers using renderTo or redraw method?
- How to create a highchart using mysql data (PHP)?
- How to create a column range chart in Highcharts using range and navigator functions?
- How to create a new Highstock chart with new Highchart and not jquery?
- How to create Chart Data using SQL query
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- How can i create doughnut chart using oxyplot in xamarin.android?
- how to create donut chart using highcharts?
- create a donut chart using highchart using jquery json object
- Is there a way how to dynamically create a plotline in highchart when the value is lower than previous one?
- When using canvg to convert Highchart SVG into PNG, all text appears twice - how to solve?
- How to grab correct highchart number in selectors using Selenium Webdriver with Python with several charts on the page?
- how to dynamically change column chart to mirror chart using highchart
- How to Populate Highchart using Json Object
- How to create a highchart with 3 different series categories name
- How to read and insert correct highchart number in selectors using Selenium Webdriver with Python?
- How to make two charts using highchart show up in the same line side by side using div
- how to create simple schedule chart with highchart
- How to create chart with highchart in which bar doesn't start from 0 in y axis?
- How can I populate my highchart using Ajax.
- How to add a new Highchart dynamically using Highchartsng
- Create a highchart graphic using angular.js
- How to create Waterfall model chart using QuickChart?
- Highcharts: How to create a drilldown pie of agegroup, gender, visits?
More Query from same tag
- How to reformat a HighChart series to for CSV export
- having trouble with AlphaVanatage API, which return a Json timeseries, and I am not able to work with in python, since I need to graph with Highgraph
- Highchart basic-line
- highcharts tooltip not working after zoom
- HighCharts: 3D Column Chart change borderColor on select
- Define and apply theme on highcharts-react-official
- Highcharts not rendering labels from an html table
- Change HighCharts pointInterval after creating chart
- Highchart Area Range chart with gradient that follows the line
- Rendering chart in the background
- Highcharts data from Google spreadsheet show line chart for one series
- Animate half pie diagram
- HighStock/HighCharts DataGrouping
- highcharts missing markers occasionally
- How to identify Highcharts datagroup event?
- Allowing some padding space in polar charts using Highcharts
- individual point settings in a scatter/line plot
- Show labels outside in sunburst highchart
- Highcharts disable hover effect and select animation
- Uncaught TypeError: Cannot read property 'mouseIsDown' of undefined
- Highcharts navigator handle height
- How To Show All Data Labels For Datetime Axis In Highcharts
- Highcharts yAxis text rotation issue in IE8
- How to parse JSON into HighCharts line graph?
- Boosting area chart makes it looking like a bar chart
- Highcharts Solid Gauge Legend Symbol
- JSON getting data from multidimensional arrays
- How can I use the chart.addButton() method?
- Highcharts Y-Axis skipped labels when dealing with large array