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();