Watch videos with subtitles in your language, upload your videos, create your own subtitles! Click here to learn more on "how to Dotsub"


0 (0 Likes / 0 Dislikes)
  • Embed Video

  • Embed normal player Copy to Clipboard
  • Embed a smaller player Copy to Clipboard
  • Advanced Embedding Options
  • Embed Video With Transcription

  • Embed with transcription beside video Copy to Clipboard
  • Embed with transcription below video Copy to Clipboard
  • Embed transcript

  • Embed transcript in:
    Copy to Clipboard
  • Invite a user to Dotsub
[Microsoft ASP.NET -] Hi, folks. (inaudible), from Microsoft, here. In this Quick Hit video, I'm going to give you a brief introduction to the new chart control that ships as part of ASP.NET 4. So to do that, I've created an empty web application project here, and I'm going to go ahead and just delete some of the standard text that gets inserted for us by default. Now I'm going to use the chart control. So I'm going to scroll down in my Visual Studio tool box to the Data section, choose Chart, drag an instance of the chart control over, and drop it on my page. Now the first thing that I need to do is select the data source that'll be used by this chart. So I can select a new data source. There are none in my project here. In our case, I'm going to say the database is a SQL database. And I choose a connection string. And it just so happens that I've recently used a connection string to Pubs, so I'm going to go ahead and select that one. And let's choose a different table. I'm going to choose the Titles table. And for now, we'll just take all of the results. But, of course, you can filter your results based on whatever SELECT criteria you want to use against your data source. Now the three other attributes that I need to set on the chart control are, 1 is the type of chart. You can see I'm just going to start with a column, but we can use bars, steplines, bubble charts, what have you, so there are a whole bunch of different types of charts built in. In our case, we'll just start with the standard bar chart. Now we need to pick x and y value members. So for the x value member, let's choose the title. And for the y value member, let's choose year to date sales. That's it. Now let's go ahead and run and see what our chart looks like, going against the data in the Pubs database. So you can see, a nice-looking chart, very simple to implement. Let's go ahead and change the visuals of that. So I can go and say, instead of a column chart, maybe we'll choose a bar chart. Fair enough. Let's go ahead and run again. And now we have a different kind of chart. So you can see that—really easy to get started with, automatically interpolates the data and provides the visual representation of our data. And that's it. You've been introduced to the charting control in ASP.NET 4. [Microsoft ASP.NET -]

Video Details

Duration: 2 minutes and 42 seconds
Country: United States
Language: English
License: All rights reserved
Genre: None
Views: 7
Posted by: neudesicasp on Sep 6, 2013

In this video you will learn how to use the ASP.NET Chart Control to create simple, intuitive, and visually compelling charts.

Caption and Translate

    Sign In/Register for Dotsub to translate this video.