Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5374891
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
Tue, Sep 8, 12:13 AM
Size
349 B
Mime Type
text/x-ruby
Expires
Thu, Sep 10, 12:13 AM (1 h, 57 m)
Engine
blob
Format
Raw Data
Handle
434281
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