Topic: highcharts and rails

I need to show new accounts  by sales agents on a chart and i got close but its not working right.

I want to use highcharts
http://www.highcharts.com/demo/column-basic

so far i can show the agents names on the footer but i cant seem to populate there sales.


view

:javascript
    $(function () {
      var data = [#{ Sale.all.map{|s| '{ name: "'+ s.first_name+ '", data: [49, 71, 106, 129, 144, 176, 135, 148, 216, 194, 95, 54]}'}.join(',') }];
 $('#new_accounts_chart').highcharts({
                chart: {
                    type: 'column'
                },
                title: {
                    text: 'New Accounts'
                },
                xAxis: {
                    categories: [
                        'Jan',
                        'Feb',
                        'Mar',
                        'Apr',
                        'May',
                        'Jun',
                        'Jul',
                        'Aug',
                        'Sep',
                        'Oct',
                        'Nov',
                        'Dec'
                    ]
                },
yAxis: {
                    min: 0,
                    title: {
                        text: 'Accounts'
                    }
                },
                tooltip: {
                    headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
                    pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                        '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
                    footerFormat: '</table>',
                    shared: true,
                    useHTML: true
                },
                plotOptions: {
                    column: {
                        pointPadding: 0.2,
                        borderWidth: 0
                    }
                },
                series: data
            });
        });

I want to change 49, 71, 106, 129, 144, 176, 135, 148, 216, 194, 95, 54 with  12.times { puts rand(100) }