Bind the external REST API to Mendix Line Chart

Hi, I  have to bind external REST API (JSON) to Mendix Line Chart. For e.x. below API return employees JSON data, so need to bind the employee_salary & employee_age to Mendix Line Chart. Please share the step by step instructions to do so.  Looking forward to hearing from you. Getting below error
1 answers

To show the data in the chart, you basically need to store data in either persistable or non-persistable entity such that there are attributes in the entity which you set as data attributes for chart axes (x-axis data and y-axis data). Please see this chart configuration in docs to understand how you can set data source for a chart using any entity. Now when you REST API call will store data in the entity, chart is set to use that entity as the data source, your chart starts displaying the data. 
You can set chart refresh interval to update it with new data. 

To store JSON data received, you can make use of JSON import mappings.