Export to GitHub

googlechartsharp - ScatterPlots.wiki


Scatter Plot Example

``` // The first dataset is used as the x-axis coordinates of each mark // The second dataset is used as the y-axis coordinates int[] xData = { 10, 20, 30, 40, 50 }; int[] yData = { 10, 20, 30, 40, 50 };

List dataset = new List(); dataset.Add(xData); dataset.Add(yData);

ScatterPlot scatterPlot = new ScatterPlot(150, 150); scatterPlot.SetTitle("Scatter Plot"); scatterPlot.SetData(dataset);

scatterPlot.AddAxis(new ChartAxis(ChartAxisType.Left)); scatterPlot.AddAxis(new ChartAxis(ChartAxisType.Bottom));

return scatterPlot.GetUrl(); ``` See this chart