How to format data based on columns?
Here i needs to convert one row to 2 rows based on category1 and category2 fileds.

**Input Data Format:**

```html
[
  {
    'Name' : 'Project A',
    'category1' : 20,
    'category2 : 10
   }
]
```

**Output Data Format:**

```html
        [
          {
            'Name' : 'Project A',
            'category' : 'category1',
            'value' : 20
           },
           {
            'Name' : 'Project A',
            'category' : 'category2',
            'value' : 10
           }
        ]
```