change table design for rating history
This commit is contained in:
@ -23,6 +23,7 @@ function loadMoreItems() {
|
||||
if (response.trim().length === 0) {
|
||||
staleLoader();
|
||||
}
|
||||
$(document).trigger("loaderFinished", response);
|
||||
hideLoader();
|
||||
isLoaderLoading = false;
|
||||
})
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user