Skip to content
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

Error: All arguments must be named list #79

Closed
adymimos opened this issue Apr 21, 2016 · 7 comments
Closed

Error: All arguments must be named list #79

adymimos opened this issue Apr 21, 2016 · 7 comments
Labels
Milestone

Comments

@adymimos
Copy link
Contributor

Seasonal Decomposition of timeseries, returning error. Issue occurs only with github install.

require(highcharter)    
x <- stl(log(AirPassengers), "per")   
hchart(x)
Error: All arguments must be named list

Thanks a lot for this wonderful package

@jbkunst
Copy link
Owner

jbkunst commented Apr 21, 2016

@adymimos

Yep, I know about this issue. And I'm working in this.

This happend when you add more axis via hc_yAxis hc_yAxis(list(list(...), list(...))) So the big list its not named (a validation that I put to the arguments) .

Sorry! 🙏 😞 And give me some time to fix this thing!

Thanks for open this issue!
Regards!

@jbkunst jbkunst added the bug label Apr 21, 2016
@jbkunst jbkunst added this to the v0.4.0 milestone Apr 21, 2016
@jbkunst
Copy link
Owner

jbkunst commented Apr 21, 2016

@adymimos

Now it works!

Thanks again for test/use the package!

@adymimos
Copy link
Contributor Author

Thanks a lot. its working now. :-)

once again...thanks a lot for this wonderful package..

@jbkunst
Copy link
Owner

jbkunst commented Apr 22, 2016

And thanks to you for come up with this issue and make this package better!

@tbenschop
Copy link

@jbkunst I stil have the error in the hc<-highchart() %>% format:
This is not the entire code, but does already give the error msg.

plotdata2<-data.table(DATE=c(2012:2015))
hc<-highchart() %>% 
  hc_chart(animation = FALSE) %>% 
  hc_title(text = "Macro data") %>% 
  hc_xAxis(categories=as.character(plotdata2$DATE),#tickInterval=4,#tickInterval=4,#type='datetime',
           labels=list(rotation=45)

) %>% 
  hc_yAxis(
    list(
      title = list(text = paste0('Manufacturing')),
      align = "left",
      showFirstLabel = FALSE,
      showLastLabel = FALSE#,
      #labels = list(format = "{value} &#176;C", useHTML = TRUE)
    ),
    list(
      title = list(text = "One"),
      align = "right",
      showFirstLabel = FALSE,
      showLastLabel = FALSE,
      #labels = list(format = "{value} mm"),
      opposite = TRUE
    )
  )

@jbkunst
Copy link
Owner

jbkunst commented May 9, 2016

Hi @adymimos,

If you need to add more than one yAxis use hc_yAxis_multiples (development version) instead. And if you want generate more yAxis automatically (and add with hc_yAxis_multiples) you can use create_yaxis function. Check http://rpubs.com/jbkunst/create_yaxis.

Tell me if this help you.

@tbenschop
Copy link

@jbkunst Thanks, that helps indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants