Binding Data from a Database
SmartChart allows hierarchical data to be bound to it for display in a Webpage. This example demonstrates how data from a database can be converted into hierarchical data and then bound to the SmartChart control. The database fields consist of PersonID, ParentID, Name and Title. Once the data is loaded into a DataSet it is converted into a hierarchical view by using the DataRelation class. Click "View Code" above to examine the code.

Org Chart
Lin Thomas
CIO



Paul Johnson
Director





Greg Jones
Web Manager
Jack Doe
PC Manager
Ben Jones
Exchange Manager