Bar chart, asp.net

Working in vs 2010, I have a gridview displaying:

Mon     Val
Jan     12
Feb     14
Mar     16
Apr     9
May     11
Jun     16
Jul     18
Aug     12
Sep     14
Oct     11
Nov     13
Dec     10

Open in new window


Question: How can I make a bar-chart from this data?

Thank you.
LVL 34
Mike EghtebasDatabase and Application 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.

Randy PooleCommented:
On your toolbar select Data and add a chart to your project then bind it..
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
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
I followed the example in this video:

https://www.youtube.com/watch?v=KOV3Z0PaMVs

I guess, the video is suing a later version of visual studio and in the following code I run into a problem:

using (SqlDataSource1 dc = new SqlDataSource1())
            {
                var v = dc.SqlDataSource1.Tolist();

                GridView1.DataSource = v;
                GridView1.DataBind();

                Chart1.DataSource = v;
                Chart1.DataBind();

Open in new window


In vs to generate data source (the video calls it data entity), I dragged and dropped the data table to create a grid-view as well as a data-set (datasource?).

I am stuck here. Do you see a way to make this compatible with vs 2010?

Thank you,

Mike
vsData.png
0
Randy PooleCommented:
I can take a look at it when I get home this evening where I have VS2010, but they still use VS 2008 here at the client I am at today :(
0
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
SqlDataSource1 was not built properly. Now it is fixed.

Thanks you,

Mike
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.