This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://code.google.com/apis/chart/interactive/docs/gallery/steppedareachart.html#Example | |
def stepped_area_chart | |
data_table = GoogleVisualr::DataTable.new | |
data_table.new_column('string' , 'Director (Year)') | |
data_table.new_column('number' , 'Rotten Tomatoes') | |
data_table.new_column('number' , 'IMDB') | |
data_table.add_rows( [ | |
['Alfred Hitchcock (1935)', 8.4, 7.9], | |
['Ralph Thomas (1959)', 6.9, 6.5], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookbook_paths: | |
- workspace | |
recipes: | |
###### | |
## Meta OS X Base | |
- pivotal_workstation::osx_updates | |
- pivotal_workstation::set_finder_show_hd_on_desktop | |
- pivotal_workstation::defaults_fast_key_repeat_rate | |
- pivotal_workstation::function_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookbook_paths: | |
- workspace | |
recipes: | |
###### | |
## Meta OS X Base | |
- pivotal_workstation::java | |
- pivotal_workstation::sshd_on | |
- pivotal_workstation::screen_sharing_app | |
# - pivotal_workstation::Skype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookbook_paths: | |
- workspace | |
recipes: | |
###### | |
## Meta OS X Base | |
- pivotal_workstation::osx_updates | |
- pivotal_workstation::set_finder_show_hd_on_desktop | |
- pivotal_workstation::defaults_fast_key_repeat_rate | |
- pivotal_workstation::function_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scutil --set ComputerName #{hostname} | |
scutil --set LocalHostName #{hostname} | |
scutil --set HostName #{hostname} | |
hostname #{hostname} | |
diskutil rename / #{hostname} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://code.google.com/apis/chart/interactive/docs/roles.html | |
def roles | |
data_table = GoogleVisualr::DataTable.new | |
data_table.new_column('string', 'Month') | |
data_table.new_column('number', 'Sales') | |
# Columns with role definition | |
data_table.new_column('number' , nil, nil, 'interval') | |
data_table.new_column('number' , nil, nil, 'interval') | |
data_table.new_column('string' , nil, nil, 'annotation') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://code.google.com/apis/chart/interactive/docs/gallery/treemap.html#Example | |
def tree_map | |
data_table = GoogleVisualr::DataTable.new | |
data_table.new_column('string', 'Region') | |
data_table.new_column('string', 'Parent') | |
data_table.new_column('number', 'Market trade volume (size)') | |
data_table.new_column('number', 'Market increase/decrease (color)') | |
data_table.add_rows( [ | |
["Global" , nil , 0 , 0 ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://code.google.com/apis/chart/interactive/docs/gallery/combochart.html | |
def combo_chart | |
data_table = GoogleVisualr::DataTable.new | |
data_table.new_column('string', 'month' ) | |
data_table.new_column('number', 'Bolivia' ) | |
data_table.new_column('number', 'Ecuador' ) | |
data_table.new_column('number', 'Madagascar' ) | |
data_table.new_column('number', 'Papua Guinea') | |
data_table.new_column('number', 'Rwanda' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://code.google.com/apis/chart/interactive/docs/gallery/geomap.html#Example | |
def geo_map | |
# Regions Example | |
data_table_regions = GoogleVisualr::DataTable.new | |
data_table_regions.new_column('string' , 'Country' ) | |
data_table_regions.new_column('number' , 'Popularity') | |
data_table_regions.add_rows(6) | |
data_table_regions.set_cell(0, 0, 'Germany' ) | |
data_table_regions.set_cell(0, 1, 200) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://code.google.com/apis/chart/interactive/docs/gallery/candlestickchart.html | |
def candlestick_chart | |
data_table = GoogleVisualr::DataTable.new | |
data_table.new_column('string', 'day') | |
data_table.new_column('number', 'min') | |
data_table.new_column('number', 'opening') | |
data_table.new_column('number', 'closing') | |
data_table.new_column('number', 'max') | |
data_table.add_rows( [ |