Replace old charting curves with new version
This commit is contained in:
@@ -6,7 +6,6 @@ using System.Web.Mvc;
|
||||
using System.Web.UI.DataVisualization.Charting;
|
||||
using System.Web.UI.WebControls;
|
||||
using LeafWeb.Core.Charter;
|
||||
using LeafWeb.Core.CharterOld;
|
||||
using LeafWeb.Core.Models;
|
||||
using LeafWeb.Core.Parsers;
|
||||
using LeafWeb.Web.Charter;
|
||||
@@ -30,26 +29,7 @@ namespace LeafWeb.Web.Controllers
|
||||
|
||||
var curveData = CurveDataConverter.Convert(cntrlComparison).ToArray();
|
||||
|
||||
var charts = LeafWebCharter.ProduceCharts(curveData[1]);
|
||||
|
||||
using (var ms = new MemoryStream())
|
||||
{
|
||||
charts.Skip(number).First().SaveImage(ms, ChartImageFormat.Png);
|
||||
ms.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
return File(ms.ToArray(), "image/png", "mychart.png");
|
||||
}
|
||||
}
|
||||
|
||||
public ActionResult LeafChartsOld(int number)
|
||||
{
|
||||
var fileInfo = new FileInfo(@"C:\Users\poprhythm\Documents\code\LeafWeb\Core.Tests\Parsers\LeafOutputData\cntrlcomparison_Wild Capsicum.csv");
|
||||
var curveDataList = new CurveDataList();
|
||||
using (var reader = fileInfo.OpenText())
|
||||
{
|
||||
curveDataList.ReadFromStream(reader);
|
||||
}
|
||||
var charts = LeafWebCharterOld.ProduceCharts(curveDataList.CurveData[1]);
|
||||
var charts = LeafWebCharter.ProduceCharts(curveData[2]);
|
||||
|
||||
using (var ms = new MemoryStream())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user