How to create excel charts in ASP.NET ??
My Requirement -
User will select the dates (from 1st dec 2014 to 31st jan 2015) from front-end.
The system will get data in datatable (Date and value)
| ID | Date | Value |
| 1 | 1-Dec-2014 | 100 |
| 2 | 15-Dec-2014 | 150 |
| 3 | 30-dec-2014 | 190 |
| 4 | 5-Jan-2015 | 250 |
Now, I want to create a graph just like in excel, with X-Axis with "Value" Column and Y-Axis with "Date" Column.
How do I do that ?

Suraj SahooRank #382 · 6.6K reputationPosted Jan 19, 2015, 7:02 AM EST
The below link will surely help you. I hope the article will meet your requirement.
http://www.c-sharpcorner.com/UploadFile/d2dcfc/C-Sharp-create-excel-report-chart-contained-with-mark-designe/
Thanks
Bhushan GawaleRank #299 · 8.4K reputationPosted Jan 19, 2015, 7:50 AM EST
You can get started here -
http://www.codeproject.com/Articles/235117/ASP-NET-Chart-Control
Jacke Elis36 reputationPosted Jan 29, 2015, 4:07 AM EST
DataTable table = new DataTable(); // ... var file = new ExcelFile(); var sheet = file.Worksheets.Add(table.TableName); sheet.InsertDataTable(table); // Create chart and select data for it. var chart = (ColumnChart)sheet.Charts.Add(ChartType.Column, "E2", "L20"); chart.SelectData(sheet.Cells.GetSubrange("A1", "B4")); // Set axis titles. chart.Axes.Horizontal.Title.Text = "Dates"; chart.Axes.Vertical.Title.Text = "Values"; // Export chart to ASP.NET's client. chart.Format().Save(this.Response, "Chart.pdf");Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 2, 2015, 9:13 PM EST
I tried ChartControl, but its visuallisation is not proper... It was rejected..
I have my values (X-axis and Y-Axis) columns in datatable.
And I have to display it on webpage... not in excel...
Wang Wen41 reputationPosted May 11, 2015, 11:23 PM EDT
You can try Vancharts. It's a javascript chart maker. Its designer provides three different data sources: local EXCEL, on-line JSON and built-in dataset.