change table design for rating history

This commit is contained in:
RaidMax
2018-05-31 19:17:52 -05:00
parent bf68e5672f
commit 696e2d12c9
10 changed files with 283 additions and 401 deletions

View File

@ -23,6 +23,7 @@ function loadMoreItems() {
if (response.trim().length === 0) {
staleLoader();
}
$(document).trigger("loaderFinished", response);
hideLoader();
isLoaderLoading = false;
})

View File

@ -27,8 +27,8 @@
gridThickness: 0,
lineThickness: 0,
tickThickness: 0,
minimum: Math.min(...data) - 15,
maximum: Math.max(...data) + 15,
minimum: Math.min(...data) - Math.min(...data) * 0.075,
maximum: Math.max(...data) + Math.max(...data) * 0.075,
margin: 0,
valueFormatString: " ",
labelMaxWidth: 0
@ -59,3 +59,10 @@ $(document).ready(function () {
});
});
});
$(document).on("loaderFinished", function (event, response) {
const ids = $.map($(response).find('.client-rating-graph'), function (elem) { return $(elem).attr('id'); });
ids.forEach(function (item, index) {
getStatsChart(item, $(item).width(), $(item).height()).render();
});
});