AnsweredAssumed Answered

Create an array for graph

Question asked by user2147901 on Sep 5, 2018
Latest reply on Sep 5, 2018 by user2147901

Hi, I am new to JSON, I would like to create a array like this

 

{

                name: 'Net Profit',

                data: [44, 55, 57, 56, 61, 58, 63, 60, 66]

            }, {

                name: 'Revenue',

                data: [76, 85, 101, 98, 87, 105, 91, 114, 94]

            }, {

                name: 'Free Cash Flow',

                data: [35, 41, 36, 26, 45, 48, 52, 53, 41]

            }

 

 

 

Here is my script

Screen Shot 2018-09-05 at 18.46.09.png

Screen Shot 2018-09-05 at 18.46.16.png

There is something wrong in the calculation,  could anyone tell me how to generate json without erase the json created in script? The name part is kept erasing.

Outcomes