now-ui-dashboard
now-ui-dashboard copied to clipboard
Populate charts with response from an API
I'm trying to populate charts with data from an API response, but its not creating the chart lines. My request looks like:
let monthArrestsResponse = await this.api.reqWithToken('get-dash-arrest-month', null, null, 'GET');
this.monthArrestsType = monthArrestsResponse.type;
this.monthArrestsCategory = monthArrestsResponse.category;
this.monthArrestsTitle = monthArrestsResponse.title;
this.monthArrestsValues = monthArrestsResponse.values;
this.monthArrestsLabels = monthArrestsResponse.labels;
and after the respponse I have just a blank chart.
Hi, @edu1525! Thank you for using our products. Unfortunately, we don't make the backend, we only work with the frontend, and we can't give you a piece of advice with this situation, but maybe some people from our community had the same issue like you and maybe will help you.
Regards, Dragos