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

html_opts don't set #83

Closed
adamgotterer opened this issue Nov 19, 2012 · 3 comments
Closed

html_opts don't set #83

adamgotterer opened this issue Nov 19, 2012 · 3 comments
Assignees
Labels

Comments

@adamgotterer
Copy link

I'm using the HightCharts#initializer to set the width and height of the canvas. But I realized that the html_opts param in the constructor is never used or set anywhere. Is there a different way to set the style parameters? And is this a bug?

@xiaods
Copy link
Collaborator

xiaods commented Nov 19, 2012

give me some code maybe fast inspect some issue from me. :-)

2012/11/19 Adam Gotterer notifications@github.com

I'm using the HightCharts#initializer to set the width and height of the
canvas. But I realized that the html_opts param in the constructor is never
used or set anywhere. Is there a different way to set the style parameters?
And is this a bug?


Reply to this email directly or view it on GitHubhttps://github.com//issues/83.

Deshi Xiao
Twitter: xds2000
E-mail: xiaods(AT)gmail.com

@adamgotterer
Copy link
Author

I was able to set the styles I want with

f.html_options[:style] = ...."

But I believe this following should have work? There is an html_opts param in the initialize method. But as I said it does nothing in the code, so I'm not sure it's purpose?

LazyHighCharts::HighChart.new('graph', { style => ... })

@ghost ghost assigned xiaods Nov 20, 2012
@xiaods
Copy link
Collaborator

xiaods commented Nov 20, 2012

this is bug. fixed done. you can

gem update lazy_high_charts 

to update to upstream version. thanks for your remind.

@xiaods xiaods closed this as completed Nov 21, 2012
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

2 participants