From the course: LINQPad Essential Training

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Visualize data with the Chart extension method

Visualize data with the Chart extension method - LINQ Tutorial

From the course: LINQPad Essential Training

Visualize data with the Chart extension method

- [Instructor] There's a tool for visualizing your data and the results window. It's the chart extension method. For this query, I'm working with the database. So I've added a connection to the DemoDB.SDF file. And then I created a link query here on line three through five that works with the products table. It selects out some of the columns in that table, product ID, product name, unit price, unit stock and units on order. And then I sort them by units on order. So, when I dumped this, I'll get the standard HTML table. There is a rudimentary charting tool built into the table. That's what these blue bars are. So when I click on here, I get a bar chart and each row like this. But there are better ways of doing charts. So, let's comment out line seven. Close this window. And then I'll uncomment line eight. So, what I'm doing here is I'm calling this extension. Notice I'm calling it on this potential query variable…

Contents