Module: Sinatra::ChartsHelper
- Extended by:
- Hexacta
- Defined in:
- lib/sinatra/helpers/charts.rb
Constant Summary
Constants included
from Hexacta
Hexacta::GEM_FILE_DIR
Instance Method Summary
collapse
Methods included from Hexacta
copy_all_files, copy_dir_structure, copy_file, gem_path, setup_dir
Instance Method Details
#bar_chart(option_hash) ⇒ Object
10
11
12
|
# File 'lib/sinatra/helpers/charts.rb', line 10
def bar_chart(option_hash)
slim "#{Hexacta::GEM_FILE_DIR}/charts/bar".to_sym, locals: option_hash
end
|
#gauge_chart(option_hash) ⇒ Object
18
19
20
|
# File 'lib/sinatra/helpers/charts.rb', line 18
def gauge_chart(option_hash)
slim "#{Hexacta::GEM_FILE_DIR}/charts/gauge".to_sym, locals: option_hash
end
|
#line_chart(option_hash) ⇒ Object
6
7
8
|
# File 'lib/sinatra/helpers/charts.rb', line 6
def line_chart(option_hash)
slim "#{Hexacta::GEM_FILE_DIR}/charts/line".to_sym, locals: option_hash
end
|
#pie_chart(option_hash) ⇒ Object
14
15
16
|
# File 'lib/sinatra/helpers/charts.rb', line 14
def pie_chart(option_hash)
slim "#{Hexacta::GEM_FILE_DIR}/charts/pie".to_sym, locals: option_hash
end
|
#stacked_bar_chart(option_hash) ⇒ Object
22
23
24
|
# File 'lib/sinatra/helpers/charts.rb', line 22
def stacked_bar_chart(option_hash)
slim "#{Hexacta::GEM_FILE_DIR}/charts/stacked_bar".to_sym, locals: option_hash
end
|