public void TestMultipleDataSet() { ChartData chartData = new ChartData( new float[][] { new float[] { 0f, 40.4f, 100f } } ); Assert.AreEqual("t:0.0,40.4,100.0", chartData.Data); }
public void TestMultipleDataSet2() { ChartData chartData = new ChartData( new float[][] { new float[] { 33f, 99.9f, 55.1f }, new float[] { 0f, 40.4f, 100f }, new float[] { 26f, 0.1f, 64.2f } } ); Assert.AreEqual("t:33.0,99.9,55.1|0.0,40.4,100.0|26.0,0.1,64.2", chartData.Data); }
public void TestSimpleEncodingSets() { ChartData chartData = new ChartData(new int[][] { new int[] { 0 }, new int[] { 1 }, new int[] { 2, 2 }, new int[] { 61, 53 } }); Assert.AreEqual("s:A,B,CC,91", chartData.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; }
/// <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) { }
public void TestSimpleEncodingSet() { ChartData chartData = new ChartData(new int[] {0, 19, 27, 53, 61}); Assert.AreEqual(chartData.Data, "s:ATb19"); }