_sparkline.html.erb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
 (HTM) git clone git://jay.scot/warvox
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       _sparkline.html.erb (972B)
       ---
            1 <% graph_id = "g" + rand(0x10000000).to_s %>
            2 
            3 <div class="sparkline" id="<%= graph_id %>"></div>
            4 
            5 <%= javascript_tag do %>
            6         $(document).ready(function() {
            7                 var chart = new Highcharts.Chart({
            8                 chart: {
            9                         renderTo: '<%= graph_id %>',
           10                         defaultSeriesType: 'area',
           11                         margin:[0,0,0,0],
           12                         // borderWidth: 0;
           13                 },
           14                 title:{
           15                         text:''
           16                 },
           17                 credits:{
           18                         enabled:false
           19                 },
           20                 xAxis: {
           21                         labels: {
           22                                 enabled:false
           23                         }
           24                 },
           25                 yAxis: {
           26                         maxPadding:0,
           27                         minPadding:0,
           28                         endOnTick:false,
           29                         labels: {
           30                                 enabled:false
           31                         }
           32                 },
           33                 legend: {
           34                         enabled:false
           35                 },
           36                 tooltip: {
           37                         enabled:false
           38                 },
           39                 plotOptions: {
           40                         series:{
           41                                 lineWidth:1,
           42                                 shadow:false,
           43                                 states:{
           44                                         hover:{
           45                                                 lineWidth:1
           46                                         }
           47                                 },
           48                                 marker:{
           49                                         //enabled:false,
           50                                         radius:1,
           51                                         states:{
           52                                                 hover:{
           53                                                         radius:2
           54                                                 }
           55                                         }
           56                                 }
           57                         }
           58                 },
           59                 series: [{
           60                         color:'#BB4607',
           61                         fillColor:'#fcfcfc',
           62                         data: [ <%= raw(points.join(", ")) %> ]
           63                 }]
           64         });
           65 });
           66 
           67 <% end %>