using System;
using System.Collections.Generic;
using System.Text;
using GoogleChartSharp;
namespace Tests{
class ScatterPlotTests
{
public static string scatterPlotTest()
{
int[] xData = { 10, 20, 30, 40, 50 };
int[] yData = { 10, 20, 30, 40, 50 };
List<int[]> dataset = new List<int[]>();
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();
}
}
}
|