Exemplo n.º 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>
 /// <param name="labels">Labels for pies</param>
 public PieChart(PieChartType type, ChartSize size, ChartData data, PieChartLabels labels)
     : this(type, size, data)
 {
     _labels = labels;
 }
Exemplo n.º 2
0
 public void TestChartLabels()
 {
     PieChartLabels labels = new PieChartLabels(new string[] {"foo", null, "bar"});
     Assert.AreEqual(labels.Name, "chl");
     Assert.AreEqual(labels.Data, "foo||bar");
 }