Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F461172
chart_helper.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 17, 11:34 PM
Size
349 B
Mime Type
text/x-ruby
Expires
Mon, May 19, 11:34 PM (21 h, 44 m)
Engine
blob
Format
Raw Data
Handle
220162
Attached To
rARCHIVING archiving
chart_helper.rb
View Options
module
ChartHelper
def
baas_chart
(
id
,
chart_options
)
html
=
<<-
HTML
<script type='text/javascript'>
$(function () {
$(document).ready(function () {
#{id}_data = #{chart_options};
$('##{id}').highcharts(#{id}_data);
});
});
</script>
HTML
html
.
html_safe
end
end
Event Timeline
Log In to Comment