public Chart <BubbleDataset> BubbleChart() { return(ChartProgramBuilder .CreateBubbleChart() .StartBuildingChartData() .SetDataLabels(new string[] { "First Data Label", "Second Data Label", "Third Data Label" }) .AddDataset(new List <BubblePoint> { new BubblePoint { R = 4, X = 20, Y = 30 }, new BubblePoint { R = 4, X = 15, Y = 15 }, new BubblePoint { R = 4, X = 10, Y = 10 } }, "First Dataset") .CreateDataAndStartBuildingChart() .BuildChart()); }
public Chart <BubbleDataset> MultiDatasetBubbleChart() { return(ChartProgramBuilder .CreateBubbleChart() .StartBuildingChartData() .SetDataLabels(new string[] { "First Data Label", "Second Data Label", "Third Data Label" }) .AddDataset(new List <BubblePoint> { new BubblePoint { R = 4, X = 20, Y = 30 }, new BubblePoint { R = 1, X = 4, Y = 23 }, new BubblePoint { R = 8, X = 9, Y = 26 } }, "First Dataset") .AddDataset(new List <BubblePoint> { new BubblePoint { R = 5, X = 15, Y = 15 }, new BubblePoint { R = 5, X = 85, Y = 15 }, new BubblePoint { R = 4, X = 45, Y = 52 } }, "Second Dataset") .AddDataset(new List <BubblePoint> { new BubblePoint() { R = 9, X = 5, Y = 10 }, new BubblePoint { R = 4, X = 66, Y = 41 }, new BubblePoint { R = 4, X = 33, Y = 4 } }, "Third Dataset") .CreateDataAndStartBuildingChart() .BuildChart()); }