Using Microsoft's Chart Controls In An ASP.NET Application: Serializing Chart Data

Posted on 4 Guys From Rolla See other posts from 4 Guys From Rolla
Published on Wed, 10 Feb 2010 00:00:00 GMT Indexed on 2010/03/07 23:27 UTC
Read the original article Hit count: 807

Filed under:

In most usage scenarios, the data displayed in a Microsoft Chart control comes from some dynamic source, such as from a database query. The appearance of the chart can be modified dynamically, as well; past installments in this article series showed how to programmatically customize the axes, labels, and other appearance-related settings. However, it is possible to statically define the chart's data and appearance strictly through the control's declarative markup. One of the demos examined in the Getting Started article rendered a column chart with seven columns whose labels and values were defined statically in the <asp:Series> tag's <Points> collection.

Given this functionality, it should come as no surprise that the Microsoft Chart Controls also support serialization. Serialization is the process of persisting the state of a control or an object to some other medium, such as to disk. Deserialization is the inverse process, and involves taking the persisted data and recreating the control or object. With just a few lines of code you can persist the appearance settings, the data, or both to a file on disk or to any stream. Likewise, it takes just a few lines of codes to reconstitute a chart from the persisted information.

This article shows how to use the Microsoft Chart Control's serialization functionality by examining a demo application that allows users to create custom charts, specifying the data to plot and some appearance-related settings. The user can then save a "snapshot" of this chart, which persists its appearance and data to a record in a database. From another page, users can view these saved chart snapshots. Read on to learn more!
Read More >

© 4 Guys From Rolla or respective owner

Using Microsoft's Chart Controls In An ASP.NET Application: Serializing Chart Data

Posted on Internet.com See other posts from Internet.com
Published on Wed, 10 Feb 2010 05:00:00 +010 Indexed on 2010/03/07 23:13 UTC
Read the original article Hit count: 807

Filed under:
This article, by Scott Mitchell, shows how to store (and load) the data generated by the Microsoft Chart Controls to disk or some other store.

© Internet.com or respective owner

Using Microsoft's Chart Controls In An ASP.NET Application: Serializing Chart Data

Posted on Internet.com See other posts from Internet.com
Published on Wed, 10 Feb 2010 05:00:00 +010 Indexed on 2010/03/07 23:13 UTC
Read the original article Hit count: 807

Filed under:
This article, by Scott Mitchell, shows how to store (and load) the data generated by the Microsoft Chart Controls to disk or some other store.

© Internet.com or respective owner

Using Microsoft's Chart Controls In An ASP.NET Application: Serializing Chart Data

Posted on Internet.com See other posts from Internet.com
Published on Wed, 10 Feb 2010 05:00:00 +010 Indexed on 2010/03/07 23:14 UTC
Read the original article Hit count: 807

Filed under:
This article, by Scott Mitchell, shows how to store (and load) the data generated by the Microsoft Chart Controls to disk or some other store.

© Internet.com or respective owner