/// <summary> /// Initializes a new instance of the Pie Chart generator. /// </summary> /// <param name="type">Pie chart type.</param> /// <param name="size">Size of the chart.</param> /// <param name="data">Chart data.</param> public PieChart(PieChartType type, ChartSize size, ChartData data) : base(GetPieType(type), size, data) { }
/// <summary> /// Initializes a new instance of the Pie Chart generator. /// </summary> /// <param name="type">Pie chart type.</param> /// <param name="size">Size of the chart.</param> /// <param name="data">Chart data.</param> /// <param name="labels">Labels for pies</param> public PieChart(PieChartType type, ChartSize size, ChartData data, PieChartLabels labels) : this(type, size, data) { _labels = labels; }
public void TestInvalidWidth3() { ChartSize size = new ChartSize(1001, 100); }
/// <summary> /// Constructor /// </summary> /// <param name="type">Type of the chart</param> /// <param name="size">Size of the chart</param> public BaseChart(ChartType type, ChartSize size) { _type = type; _size = size; }
public void TestInvalidWidth2() { ChartSize size = new ChartSize(-1, 100); }
public void TestInvalidWidth1() { ChartSize size = new ChartSize(0, 100); }
public void TestInvalidHeight3() { ChartSize size = new ChartSize(100, 1001); }
public void TestInvalidHeight2() { ChartSize size = new ChartSize(100, -1); }
public void TestInvalidHeight1() { ChartSize size = new ChartSize(100, 0); }