would first convert your data frame to long. then you can
group_by category and use
list_parse2 to make lists by category.
for this plot, i made sure
month was numeric on x-axis. i renamed
name so it would show up in legend and labels. and added
connectnulls in case you wanted to connect points across missing values (
library(highcharter) library(tidyverse) reprexdf2 <- reprexdf %>% pivot_longer(cols = -category, names_to = "month", values_to = "value", names_pattern = "month(\\d)$") %>% group_by(category) %>% do(data = list_parse2(data.frame(as.numeric(.$month), .$value))) %>% ungroup() %>% rename(name = category) highchart() %>% hc_plotoptions(series = list(connectnulls = true), line = list(marker = list(enabled = false)))%>% hc_add_series_list(reprexdf2)
- How could you supply multiple series to a line chart in R shiny using highcharter package and without hardcoding the series?
- Plot Highchart multiple series line chart using JSON data
- How do you position the x-axis labels along the line y=0 using Highcharts?
- How to use for loop array to add series dynamically for line chart
- How to render a vertical line when the mouse cursor is on the chart using highcharts?
- highcharts change chart type using dropdown for multiple series
- How to set column width for columnRange chart with multiple series
- How to proceed reactive function of dataset in Shiny - line chart R
- Adding multiple series to the spline chart using dotnet high charts in asp.net mvc3
- Basic Highcharts Multiple Series Chart Using JSON
- Highcharts: how do I add full data to multiple series in a chart
- how to render multiple line charts - highcharts on same page using highcharts react wrapper - highcharts-react-offical
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- Highchart Line chart – data series with multiple axis - 2nd series placed in the middle of X axis
- How to plot line chart with series data in highcharts?
- How can I prepare a Group Stacked Bar Chart in Highcharts using multiple and different types of data?
- Highcharts : using same div to load a chart multiple times with different series data
- highchart's line chart with constant series not plotting when using linear gradient colour
- How to draw line plus bar chart using highcharts/d3.js or any other chart library?
- How to have multiple highcharts with different series data in vuejs without repeating code
- How to put multiple HighChart in a page having different series value in different chart
- How to change the series color and mark after I draw the line chart in highcharts?Does it has databound event?
- High charts Issue with stock bar chart multiple line series
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- How to implement similar line chart using the Highcharts library?
- Line and column combo chart with multiple columns for each category, how to position line marker for each category on a specific column?
- How to pass date range filter to line chart using highcharts?
- Highcharts Line Chart Drill down into multiple series
- How to stand out a vertical plotted line in a dense series using highchart?
- Using highcharter to return multiple data with Shiny
More Query from same tag
- Highcharts Treemap: Add link on lowest level
- highcharts plugin cakephp option for 3d not found
- Highstock, dynamically changing from percent stacking to normal stacking
- Highcharts: is there a way to offset lines slightly so same coordinates do not overlap?
- Highcharts yAxis setExtremes far off
- HIghcharts - chart width not the size of the parent container
- Scrape data from a highchart using selenium
- How to Create Custom Shapes in R Highcharter
- highcharts string in data: [ ]
- How to change DateTime format on Highcharts?
- Set (Sigma) Symbol as custom button text in Highcharts
- generate chart using google spreadshhet and highstocks chart
- How to deal in Highcharts with special characters from CSV file?
- Update all Highcharts chart series synchronously
- Highscharts not working after array passed array_diff
- Highcharts not plotting series correctly on secondary axis
- How to define a custom class to HighchartsReact component
- How to import data from google spreadsheet in Highmaps map bubble
- Highcharts/highcharteR ignores point color when plotting 50+ series
- Highcharts Data Not Showing on Ajax Call
- How to retain highchart line graph by onClick() function - php mysql
- Tool tip for static plotline in y-axis
- highcharts - render text with decimal 'x' and 'y'
- Set highstock chart navigator max range by default
- Update chart border color with plotband color in angular gauge
- How to hide/show a column in a basic column graph of highcharts?
- define x values for hc_add_series_list in highcharter
- Highcharts logarithmic chart not displaying series on webpage
- High chart area fill