how to generate bar chart to excel in asp.net with c#.and generated chart should not be as image.
anyway,i have one table having 2 columns .which can be referred in the following text.
| Name | Marks |
| A | 1 |
| B | 2 |
| C | 3 |
| D | 4 |
| E | 5 |
| F | 6 |
| G | 7 |
| H | 8 |
| I | 9 |
bars should be generated for marks.and, name should appeared left side of the y-axis.
In bars generation,maximum value bar should first. x-axis values can be taken until 10.because , 9 is the highest value in the table.one more thing , value should be appeared along with bar edge.appearance of entire chart should be as attached excel document.
generated chart should be as attached excel document.
eventually, what am saying that in the attached file chart pasted as image.hence,i was unable to change the values manually in Excel document.once value will be changed, bars should be sorted out to appropriate place.
if you have any doubts, please let me know.
Thanks
Ravi Gaddam
Alex SmithPosted Aug 4, 2014, 4:23 AM
You may find this page helpful, it presents an example for create bar chart in Excel using C#..All you can do is to follow the program guidance to make bar chart with your own data in table.As you said, the bar chart created by this way will not be image, otherwise the bar chart will be created with nice formatting in Excel file.
Hope it helps you.
Darren KangPosted Jul 31, 2014, 5:05 AM
I hope this is what you are looking for.
Note I used an Excel API from this .NET component and you can use it in ASP.NET applications. Also here you can find another sample of creating a chart element in excel file with C#.