I have a JSON object that I am returning from an Ajax request that is formatted like the following:
{data:
[{"Sales1": "100", "Sales2": "200", "Sales3": "400"},
{"Sales1": "150", "Sales2": "250", "Sales3": "450"}]};
How would I go about generating a datatables object with the columns names as "Sales1", "Sales2", etc., and the values in separate rows beneath each respective column? Also, lets say I wanted to have row labels to the left and right of the values, would that be possible?