now-ui-dashboard icon indicating copy to clipboard operation
now-ui-dashboard copied to clipboard

Populate charts with response from an API

Open edu1525 opened this issue 5 years ago • 1 comments

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.

edu1525 avatar Apr 11 '19 14:04 edu1525

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

dragosct avatar Apr 12 '19 07:04 dragosct