function formatDataToArray (data) {
                    var d = data.map(
                        function (d) {
                            return [
                                _.capitalize(d.event),
                                d.count,
                                d.llr
                            ];
                        }
                    ).sort(function (a, b) {
                        return (b[2] - a[2]);
                    });
                    maxLlr = d[0][2];
                    return d;
                }
// We also set the max LLR (llr of the first row, after sorting by llr value)
We also set the max LLR (llr of the first row, after sorting by llr value)
We also set the max LLR ( llr of the first row after sorting by llr value )
function formatDataToArray (data) {
                    var d = data.map(
                        function (d) {
                            return [
                                _.capitalize(d.event),
                                d.count,
                                d.llr
                            ];
                        }
                    ).sort(function (a, b) {
                        return (b[2] - a[2]);
                    });
                    maxLlr = d[0][2];
                    return d;
                }
function formatDataToArray ( data ) { var d = data . map ( function ( d ) { return [ _ . capitalize ( d . event ) , d . count , d . llr ] ; } ) . sort ( function ( a , b ) { return ( b [ 2 ] - a [ 2 ] ) ; } ) ; maxLlr = d [ 0 ] [ 2 ] ; return d ; }
We also set the max LLR (llr of the first row, after sorting by llr value)
We also set the max LLR ( llr of the first row after sorting by llr value )