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

Adds locale option as described in.. #96

Merged
merged 4 commits into from
Aug 27, 2015

Conversation

winston
Copy link
Owner

@winston winston commented Aug 26, 2015

https://google-developers.appspot.com/chart/interactive/docs/library_loading_enhancements#loadwithlocale

Built on top of #95.

To have charts of a different locale, pass language option to the chart:

  opts   = { 
    :width => 400, :height => 240, 
    :title => 'Company Performance', 
    vAxis: {title: 'Year', titleTextStyle: {color: 'red'}},
    language: 'ja'
  }
    @chart = GoogleVisualr::Interactive::BarChart.new(data_table, opts)

Fixes: #76

- annotation chart
- calendar
- gantt
- sankey
- word tree
# For Configuration Options, please refer to:
# https://developers.google.com/chart/interactive/docs/gallery/wordtree#a-simple-example
end

Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra empty line detected at module body end.

winston added a commit that referenced this pull request Aug 27, 2015
Adds locale option as described in..
@winston winston merged commit ef8ef18 into feature/add-material-charts Aug 27, 2015
@winston winston deleted the feature/add-locale branch August 27, 2015 15:27
@winston winston mentioned this pull request Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants