export data in same format as shown in compact view

Resolved
Bhagvan Chougule asked on August 23, 2017

 
Following is example of rawData response. We have the following pivot table:

 
Category
 
 

Month
A
B
C

April
 1
2
3

May
4
5
3

June
3
4
5

I would like to export this in the following format
[
["Month","A","B","C"],
["April",1,2,3],
["May",4,5,3],
["June",3,4,5]
]
 
Is there a way to do that through flexmonster.getData

1 answer

Public
Ian Sadovy Ian Sadovy Flexmonster August 24, 2017

Hello Bhagvan,
 
Thank you for the question.
Actually, getData() method was created for the integration with 3rd party charts.
It seems that you need something like export, try flexmonster.exportTo("json")
Please let me know if it works for you.
 
Regards,
ian

Please login or Register to Submit Answer