Adds a dataset to a chart, provided the data is valid. Adding a name for the dataset is optional, the default name for the nth dataset added is “Series n”. An InvalidOperationException is thrown if the dataset is either invalid, already added to the chart, or contains non-positive values when the chart has IsLogarithmic enabled.
Declaration Syntax
public virtual void AddDataset(Dataset2D dataset, string name)
Parameters
- dataset(Dataset2D)
No details are provided for this entry.
- name(string)
No details are provided for this entry.