From 4e1a20272fb2d8daa072135ef5aff83369d7b57e Mon Sep 17 00:00:00 2001 From: sintanial Date: Sun, 28 Jun 2015 01:41:44 +0200 Subject: [PATCH] add reverse data attribute --- jquery.highchartTable.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jquery.highchartTable.js b/jquery.highchartTable.js index 3c03126..4821d21 100644 --- a/jquery.highchartTable.js +++ b/jquery.highchartTable.js @@ -195,6 +195,11 @@ var isGraphDatetime = $table.data('graph-xaxis-type') == 'datetime'; var rows = $('tbody:first tr', table); + + if (!!$table.data('graph-reverse')){ + rows = $(rows.get().reverse()); + } + rows.each(function(indexRow, row) { if (!!$(row).data('graph-skip')) { return;