From cfa7d5c40f45873fd8eec1eeb6fa7d941b79388a Mon Sep 17 00:00:00 2001 From: sintanial Date: Sat, 27 Jun 2015 08:53:01 +0200 Subject: [PATCH] add x-value data attribute --- jquery.highchartTable.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jquery.highchartTable.js b/jquery.highchartTable.js index 3c03126..f92d5a9 100644 --- a/jquery.highchartTable.js +++ b/jquery.highchartTable.js @@ -210,7 +210,12 @@ } var $td = $(td); if (indexTd==0) { - cellValue = $td.text(); + if ($td.data('graph-x-value') !== undefined) { + cellValue = $td.data('graph-x-value'); + } else { + cellValue = $td.text(); + } + xValues.push(cellValue); } else { var rawCellValue = $td.text();