ASP.net Bar chart flip X and Y axis

Hi

I am binding data shown in the GridView the chart shown in the same image.
I need to change the display to a vertical column chart.
Is it possible to just flip the X and Y axes?
How else would I achieve this



SELECT Categories.[Main Category] + ' ' + Answers.Survey  As [Main Category], Round(sum((CAST([Score] as Float))), 2) AS Score FROM Answers LEFT JOIN Categories ON Answers.Category = Categories.ID GROUP BY Categories.[Main Category], Answers.Survey, Answers.ReviewerID, Answers.CompanyID HAVING (((Answers.Survey)='1') AND ((Answers.ReviewerID)='R') AND ((Answers.CompanyID)='XYZ')) Order By [Main Category] DESC

1
<asp:Chart ID="Chart_Total" runat="server" Height="336px" Width="348px">
                                    <Titles>
                                        <asp:Title Text="">
                                        </asp:Title>
                                    </Titles>
                                    <Series>
                                        <asp:Series BorderWidth="5" ChartArea="MainChartArea" ChartType="Bar"
                                            Color="#000024" Name="MyCategories" YValuesPerPoint="6">
                                        </asp:Series>
                                    </Series>
                                    <ChartAreas>
                                        <asp:ChartArea Name="MainChartArea">
                                        </asp:ChartArea>
                                    </ChartAreas>
                                </asp:Chart>
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rahul AgarwalTeam LeaderCommented:
Just change

myChart.Series["mySeries"].ChartType = SeriesChartType.Bar;

to

myChart.Series["mySeries"].ChartType = SeriesChartType.Column;
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Great answer. Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.