. Area-Hiển thị tốc độ thay đổi theo thời gian bằng cách che phần dưới của dòng. Bar-Tương tự như một biểu đồ cột nhưng hiển thị các giá trị theo chiều ngang thay vì theo chiều dọc. Line-Hiển thị các thay đổi trong dữ liệu bằng cách dựng hình dữ liệu điểm như một dòng liên tục duy nhất. Hiển thị điểm mỗi giá trị như là một điểm trên biểu đồ. | 694 CHAPTER 15 Using the Chart Control Area Shows the rate of change over time by shading the area under the line Bar Similar to a Column chart but displays the values horizontally instead of vertically Line Displays changes in data by rendering data points as a single continuous line Point Displays each value as a point on the chart Pie Shows how much each data point contributes to the entire data set by rendering it as a percentage Box Plot Shows how data is distributed across a data set by displaying one or more boxes Candlestick Commonly used to display stock information such as the high and low values along with the opening and closing prices NOTE You can find the complete set of possible chart types on the MSDN website at http en-us library dd489233 .aspx. Sorting and Filtering Data An instance of a chart control contains a DataManipulator property that can be used to sort and filter the chart data. You can sort any series in the chart by any axis X Y Y2 and so on and you can choose to sort in either an ascending or descending order. The DataManipulator property provides a Sort method to do this. To use the sorting functionality your chart must already be populated with data. To ensure this we wait until the OnDataBound event to invoke our sorting code. Listing sorts the movie categories from highest count to lowest count by executing the chtMovies_DataBound method after it binds to the SqlDataSource see Figure . From the Library of Wow eBook Chart Control Fundamentals 695 15 FIGURE Sorting a chart. LISTING @ Page Language C @ Register Assembly Version Culture neutral PublicKeyToken 31bf3856ad364e35 Namespace TagPrefix asp DOCTYPE html PUBLIC - W3C DTD XHTML EN http TR xhtml11 DTD script runat server void chtMovies_DataBound object sender EventArgs e .