using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using FusionCharts.Visualization;
using FusionCharts.DataEngine;
namespace FusionChartsSamples
public class HomeController : Controller
public ActionResult Index()
ViewData["Title"] = "FusionCharts asp.net csharp wrapper samples in MVC6";
ViewData["Message"] = "Single Y-axis Combination Chart 2D";
DataModel model = new DataModel();
JsonFileSource jsonFileSource = new JsonFileSource("https://raw.githubusercontent.com/poushali-guha-12/SampleData/master/mscombi2d.json");
model.DataSources.Add(jsonFileSource);
Charts.CombinationChart combiChart = new Charts.CombinationChart("mscombi2d");
combiChart.Data.Source = model;
combiChart.Data.ColumnPlots("Actual Revenue");
combiChart.Data.LinePlots("Projected Revenue");
combiChart.Data.AreaPlots("Profit");
combiChart.XAxis.Text = "Month";
combiChart.PrimaryYAxis.Text = "Amount (in USD)";
combiChart.Caption.Text = "Harrys's Supermart";
combiChart.SubCaption.Text = "Sales analysis of last year";
combiChart.Width.Pixel(600);
combiChart.Height.Pixel(500);
combiChart.ThemeName = FusionChartsTheme.ThemeName.FUSION;
ViewData["Chart"] = combiChart.Render();