|
@@ -1512,7 +1512,7 @@ ${ hueIcons.symbols() }
|
|
|
<table class="table table-condensed table-striped resultTable">
|
|
<table class="table table-condensed table-striped resultTable">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr data-bind="foreach: result.meta">
|
|
<tr data-bind="foreach: result.meta">
|
|
|
- <th data-bind="html: ($index() == 0 ? ' ' : $data.name), css: { 'sort-numeric': isNumericColumn($data.type), 'sort-date': isDateTimeColumn($data.type), 'sort-string': isStringColumn($data.type)}, attr: {'width': ($index() == 0 ? '1%' : ''), title: $data.type }"></th>
|
|
|
|
|
|
|
+ <th data-bind="html: ($index() == 0 ? ' ' : $data.name), css: cssClass, attr: {'width': ($index() == 0 ? '1%' : ''), title: $data.type }"></th>
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody>
|
|
<tbody>
|
|
@@ -2223,18 +2223,6 @@ ${ hueIcons.symbols() }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function isNumericColumn(type) {
|
|
|
|
|
- return $.inArray(type, ['TINYINT_TYPE', 'SMALLINT_TYPE', 'INT_TYPE', 'BIGINT_TYPE', 'FLOAT_TYPE', 'DOUBLE_TYPE', 'DECIMAL_TYPE', 'TIMESTAMP_TYPE', 'DATE_TYPE']) > -1;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function isDateTimeColumn(type) {
|
|
|
|
|
- return $.inArray(type, ['TIMESTAMP_TYPE', 'DATE_TYPE']) > -1;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function isStringColumn(type) {
|
|
|
|
|
- return !isNumericColumn(type) && !isDateTimeColumn(type);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
function pieChartDataTransformer(rawDatum) {
|
|
function pieChartDataTransformer(rawDatum) {
|
|
|
var _data = [];
|
|
var _data = [];
|
|
|
|
|
|