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