예제 #1
0
 /// <summary>
 /// Creates a chart displaying a supported <see cref="ChartType"/> with the given data. Includes a chart and a table, and allows exporting the data to CSV.
 /// </summary>
 /// <param name="setup">The setup object for the chart.</param>
 /// <param name="series">The data series.</param>
 /// <param name="color">The color to use for the data series.</param>
 public Chart( ChartSetup setup, DataSeries series, Color? color = null )
     : this(setup, series.ToSingleElementArray(), colors: color != null ? color.Value.ToSingleElementArray() : null)
 {
 }
 /// <summary>
 /// Creates a chart displaying a supported <see cref="ChartType"/> with the given data. Includes a chart and a table, and allows exporting the data to CSV.
 /// </summary>
 /// <param name="setup">The setup object for the chart.</param>
 /// <param name="series">The data series.</param>
 /// <param name="color">The color to use for the data series.</param>
 public Chart(ChartSetup setup, DataSeries series, Color?color = null)
     : this(setup, series.ToCollection(), colors : color != null ? color.Value.ToCollection() : null)
 {
 }