Click here to Skip to main content
16,016,580 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi frnds..

can anyone advice me how to combine bar and line chart in excel through vb.net..

Successfully i created line chart through vb.net and its perfectly working.. i have to combine bar chart in the same line chart..

Thanks
Posted

1 solution

You simply add another series to the same chart and then set
C#
ChartObject.Series[seriesName].ChartType = SeriesChartType.Line;

or whatever type you want.
 
Share this answer
 
Comments
nithibs 29-Jun-12 5:00am    
I tried your above solution and doesn't work what i need is on the left side line chart for some values and right side bar chart for some other values in a single chart.
ZurdoDev 29-Jun-12 7:48am    
I doubt that is possible. What you are describing is 2 charts, like you said. The x axis wouldn't work if you do it the way you are asking. Can you explain why? Maybe there is a different approach. But it sounds like you'll have to stick to 2 charts.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900