Hi,
I've been having trouble with figuring out how to change the separator used for the PowerChart export to CSV.
The users of our gateway can have either comma or semi-column as a separator in their windows region setting. Most of these people also strictly use the PowerChart tool for their need. They then often convert these to csv to (try to) incorporate in their Excel charts. The conversion step required (adding "sep=,") at the beginning can be a bit overwhelming for some of them.
I figured: No problem I'll setup a script with 2 buttons. I can easily get my datasets from a regular chart or graph and add the required code with:
chart = self.getSibling("chart")
data = chart.props.data
csv = system.dataset.toCSV(data)
formating = "sep , \n"
formatedcsv = formating + csv
system.file.writeFile(...)
But I can't find the way to get the data from a PowerChart in the same way. There might also be a way to change the option directly from the properties of the chart, but I wasn't yet able to find it.
Any tip or ideas to help me figure this one out? Thank you in advance.