Currently, I have a code snippet that retrieves data and saves it to a CSV file. However, the issue is that it's writing the data in columns rather than in a header row. I attempted toggling the 'showLabels' option between true and false to resolve this problem, but unfortunately, it didn't work as expected. Can someone please assist me in figuring out what I might be missing here?
var options = {
fieldSeparator: ',',
quoteStrings: '"',
decimalseparator: '.',
showLabels: true,
showTitle: false
};
new Angular2Csv(this.data, 'test', options);