How to dynamically add series to Chart

Hi,

I’d like to dynamically add a dataset to a Chart. I don’t see anything under Scripting in the user manual, and when I call getDataset() on the JFreeChart plot I get a com.inductiveautomation.ignition.common.BasicDatas object which is opaque to me. I’m a bit leery of replacing the plot’s dataset with a generic JFreeChart one in case some Ignition code accesses it expecting a BasicDatas…Any suggestions?

Thanks,

Rob

what i have done is create all of the datasets that the chart uses as custom properties then bind the charts datasets to those. I then use scripting to create the datasets for the pens, axes, and subplots.