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

allow the user to select a version of the library to load #72

Closed
wants to merge 1 commit into from

Conversation

ghiculescu
Copy link
Contributor

This is useful if, for example, you want to load a release candidate of the chart.

Version can be provided as part of the options hash, or as a setter once the chart object has been created.

@@ -50,7 +53,7 @@ def to_js(element_id)
# Parameters:
# *div_id [Required] The ID of the DIV element that the Google Chart should be rendered in.
def load_js(element_id)
"\n google.load('visualization','1', {packages: ['#{package_name}'], callback: #{chart_function_name(element_id)}});"
"\n google.load('visualization', '#{version}', {packages: ['#{package_name}'], callback: #{chart_function_name(element_id)}});"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [134/80]

@winston
Copy link
Owner

winston commented May 12, 2014

Thanks for the PR. Can you fix the build (ignore the HoundCI messages)?

Once it's fixed, I can merge it. Thank you!

@JuanitoFatas
Copy link
Collaborator

Rebased with master and merged manully as 7bffe1d. Thanks!

JuanitoFatas added a commit that referenced this pull request May 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants