Skip to content
Advertisement

Transform an array with attributes into a list

I am working with a graphics library and it is very bad to manipulate the data coming from the API. The problem is that the chart lib does not accept the data format that the api I am using returns.

API response

JavaScript

Expected (UPDATED)

JavaScript

Advertisement

Answer

Is this what you’re looking for?

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement