public static string linearGradientFillTest() { int[] line1 = new int[] { 5, 10, 50, 34, 10, 25 }; LineChart lineChart = new LineChart(250, 150); lineChart.SetTitle("Linear Gradient fill test"); lineChart.SetData(line1); lineChart.AddAxis(new ChartAxis(ChartAxisType.Left)); lineChart.AddAxis(new ChartAxis(ChartAxisType.Bottom)); LinearGradientFill fill = new LinearGradientFill(ChartFillTarget.ChartArea, 45); fill.AddColorOffsetPair("FFFFFF", 0); fill.AddColorOffsetPair("76A4FB", 0.75); SolidFill bgFill = new SolidFill(ChartFillTarget.Background, "EFEFEF"); lineChart.AddLinearGradientFill(fill); lineChart.AddSolidFill(bgFill); return lineChart.GetUrl(); }
public static string solidFillTest() { int[] line1 = new int[] { 5, 10, 50, 34, 10, 25 }; LineChart lineChart = new LineChart(250, 150); lineChart.SetTitle("Solid fill test"); lineChart.SetData(line1); lineChart.AddAxis(new ChartAxis(ChartAxisType.Left)); lineChart.AddAxis(new ChartAxis(ChartAxisType.Bottom)); SolidFill bgFill = new SolidFill(ChartFillTarget.Background, "EFEFEF"); SolidFill chartAreaFill = new SolidFill(ChartFillTarget.ChartArea, "000000"); lineChart.AddSolidFill(bgFill); lineChart.AddSolidFill(chartAreaFill); return lineChart.GetUrl(); }