Exemple #1
0
 /// <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)
 {
 }
Exemple #2
0
 /// <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;
 }
Exemple #3
0
 public void TestInvalidWidth3()
 {
     ChartSize size = new ChartSize(1001, 100);
 }
Exemple #4
0
 /// <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;
 }
Exemple #5
0
 public void TestInvalidWidth2()
 {
     ChartSize size = new ChartSize(-1, 100);
 }
Exemple #6
0
 public void TestInvalidWidth1()
 {
     ChartSize size = new ChartSize(0, 100);
 }
Exemple #7
0
 public void TestInvalidHeight3()
 {
     ChartSize size = new ChartSize(100, 1001);
 }
Exemple #8
0
 public void TestInvalidHeight2()
 {
     ChartSize size = new ChartSize(100, -1);
 }
Exemple #9
0
 public void TestInvalidHeight1()
 {
     ChartSize size = new ChartSize(100, 0);
 }