예제 #1
0
파일: PieChart.cs 프로젝트: pachman/ngchart
 /// <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)
 {
 }
예제 #2
0
파일: PieChart.cs 프로젝트: pachman/ngchart
 /// <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;
 }
예제 #3
0
 public void TestInvalidWidth3()
 {
     ChartSize size = new ChartSize(1001, 100);
 }
예제 #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;
 }
예제 #5
0
 public void TestInvalidWidth2()
 {
     ChartSize size = new ChartSize(-1, 100);
 }
예제 #6
0
 public void TestInvalidWidth1()
 {
     ChartSize size = new ChartSize(0, 100);
 }
예제 #7
0
 public void TestInvalidHeight3()
 {
     ChartSize size = new ChartSize(100, 1001);
 }
예제 #8
0
 public void TestInvalidHeight2()
 {
     ChartSize size = new ChartSize(100, -1);
 }
예제 #9
0
 public void TestInvalidHeight1()
 {
     ChartSize size = new ChartSize(100, 0);
 }