private ChartJsVModel GetChart(IEnumerable <UserTrackingDto> userTrackingList, UserTrackingFilter filter)
        {
            var model = new UserTrackingChartViewModel()
            {
                BodyPart              = filter.BodyPart,
                UserTrackingBodyPart  = filter.BodyPart,
                MeasurementScaleLKDId = filter.MeasurementScaleLKDId,
                ChartType             = filter.ChartType
            };

            return(_chartHelper.LoadChart(userTrackingList, model));
        }
        public async Task <IViewComponentResult> InvokeAsync(UserTrackingChartViewModel model)
        {
            if (!model.UserId.HasValue)
            {
                model.UserId = (int)AbpSession.UserId.Value;
            }
            var userTrackingList = _userTrackingAppService.GetAllUserTrackingList(new PagedResultRequestExtDto()
            {
                UserId = model.UserId, FromDate = model.FromDate, ToDate = model.ToDate
            }).OrderBy(x => x.CreationTime);
            var chartVModel = _chartHelper.LoadChart(userTrackingList, model);

            return(View(chartVModel));
        }