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()
DataTable ChartData = new DataTable();
ChartData.Columns.Add("Programming Language", typeof(System.String));
ChartData.Columns.Add("Users", typeof(System.Double));
ChartData.Rows.Add("Наличные UZS", 62000);
ChartData.Rows.Add("Перечисление UZS", 46000);
ChartData.Rows.Add("Терминал UZS", 38000);
ChartData.Rows.Add("Наличные USD", 31000);
ChartData.Rows.Add("Перечисление USD", 27000);
StaticSource source = new StaticSource(ChartData);
DataModel model = new DataModel();
model.DataSources.Add(source);
Charts.PieChart pie = new Charts.PieChart("pie_chart");
pie.Caption.Text = "Продажи по типам оплат";
pie.SubCaption.Text = "01.04.20-01.02.04.20";
pie.ThemeName = FusionChartsTheme.ThemeName.FUSION;
ViewData["Chart"] = pie.Render();