コード例 #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)
 {
 }
コード例 #2
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.ToCollection(), colors : color != null ? color.Value.ToCollection() : null)
 {
 }