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

Mimic Highchart Polar #51

Closed
ghost opened this issue Apr 30, 2013 · 2 comments
Closed

Mimic Highchart Polar #51

ghost opened this issue Apr 30, 2013 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Apr 30, 2013

Hi,
I try to understand how programmatic approach work starting from trying to mimic polar graph for HighCharts (http://www.highcharts.com/demo/polar-spider)
I can see the huge refactoring work to gather all JS libraries into one framework and see the rPlot function.
Though, with the current state of documentation, I don't see how to start from rPlot.
So I started to investigate directly to HighChart layer and tried:

x=data.frame("S1"=c(9,8,9,1,3),"S2"=c(7,3,7,6,4))
rownames(x)=paste("factor",rownames(x))

a=rCharts:::Highcharts$new()
a$addParams(width = 550)
a$chart(type='line',polar=TRUE)
a$pane(size='80%')
a$title(text='Polarize-It',x=-80)
a$xAxis(categories=rownames(x),tickmarkPlacement='on',lineWidth=0)
a$yAxis(gridLineInterpolation='polygon',lineWidth=0,min=0)
a$data(x,pointPlacement='on')
a$printChart("testPolar")

Error in file(con, "r") : invalid 'description' argument

Can you help: what should be corrected?

Thank you,

Eric

PS: no pressure but I am really working on your sample gallery

@ramnathv
Copy link
Owner

I forgot to update Highcharts when I refactored the code base. Just pushed a fix to github and your code should work now. See here http://pagist.github.io/?5488102

Moreover rPlot is only for Polychart. A hPlot function is being worked upon, which would make things easier with Highcharts, but it would only be a wrapper around Highcharts$new(), so you will have more flexibility with the approach you are taking.

@ghost
Copy link
Author

ghost commented Apr 30, 2013

that was fast! Thanks for explanation.
I will continue investigations with this approach beginning by looking at JS solutions capabilities.
Keep up great work!

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

1 participant