I'm trying to write a 'chart editor' essentially where a user can add additional series, change the line colors, and so forth. Save the 'chart' to a database (which would be the json used to reconstruct the chart), so they can pull it up and continue editing later, share it, etc.
Adding is easy -- usual call to addSeries works fine, chart looks great.
The problem is when I want to save this chart, dynamically added series aren't in the userOptions. Nor is the line color, but I learned how to grab that. I'm guessing I need to get all the visible series through chart.series, loop over everything, and then save essentially a json object of everything I need to re-render the chart later.
Is there a better/easier way to get that data? I was ideally hoping to use userOptions, but that doesn't look like a good solution. Just want to make sure I'm not going down the wrong path here.