Ariovaldo Report post Posted February 4, 2020 (edited) Hello, I'm using the fusioncharts library for .NET. I would like to show a graph with two columns, I will leave an example of how it is and how I would like it to be. Any help is welcome, thanks. Source code Currently Intended(Example) Thanks. Edited February 4, 2020 by Ariovaldo Share this post Link to post Share on other sites
soumya Report post Posted February 4, 2020 Hi, Yes, you need to provide multiple measures for each category label. For reference check the below code snippet and implement accordingly. using System; using System.Web.Mvc; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using FusionCharts.Visualization; using FusionCharts.DataEngine; using System.Data; 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("Java",62000); ChartData.Rows.Add("Python",46000); ChartData.Rows.Add("Javascript",38000); ChartData.Rows.Add("C++",31000); ChartData.Rows.Add("C#",27000); ChartData.Rows.Add("PHP",14000); ChartData.Rows.Add("Perl",14000); // Create static source with this data table StaticSource source = new StaticSource(ChartData); // Create instance of DataModel class DataModel model = new DataModel(); // Add DataSource to the DataModel model.DataSources.Add(source); // Instantiate Column Chart Charts.ColumnChart column = new Charts.ColumnChart("first_chart"); // Set Chart's width and height column.Width.Pixel(700); column.Height.Pixel(400); // Set DataModel instance as the data source of the chart column.Data.Source = model; // Set Chart Title column.Caption.Text = "Most popular programming language"; // Sset chart sub title column.SubCaption.Text = "2017-2018"; // hide chart Legend column.Legend.Show = false; // set XAxis Text column.XAxis.Text = "Programming Language"; // Set YAxis title column.YAxis.Text = "User"; column.ThemeName = FusionChartsTheme.ThemeName.FUSION; ViewData["Chart"] = column.Render(); return View(); } } } For reference check the following sample https://dotnetfiddle.net/nVVeWE Share this post Link to post Share on other sites