EDN Admin
Well-known member
The Chart Web control makes it easy to display a chart in an ASP.NET web page - simply drag the Chart control onto the page, set a few properties and either bind it to
a data source control or write a few lines of code that get and bind the data of interest. When a page with a Chart control is visited by a user, the Chart control renders
an
element on the page that displays the rendered chart.
The Chart control is great for displaying a chart on a web page, but what if a user wants to view that chart offline, or send the chart to a colleague? In an earlier
installment, http://www.4guysfromrolla.com/articles/093009-1.aspx Programmatically Generating Chart Images , we examined a number of ways to generate
the chart image programmatically. This technique is useful if you want to modify the chart image before displaying it (to, say, add a watermark) or if you want
to send the chart to a recipient via email. This technique can also be used to allow the visitor to export the chart image into an alternative format.
This article shows how to let users export a chart from a web page to an alternative format. Specifically, well look at adding an "Export" button to the chart web page
that, when clicked, exports the chart displayed in the web page to either an image file that can be downloaded or as a PDF file. Read on to learn more!
http://www.4guysfromrolla.com/articles/100610-1.aspx" class="readmore Read More >
View the full article
a data source control or write a few lines of code that get and bind the data of interest. When a page with a Chart control is visited by a user, the Chart control renders
an
Code:
<img>
The Chart control is great for displaying a chart on a web page, but what if a user wants to view that chart offline, or send the chart to a colleague? In an earlier
installment, http://www.4guysfromrolla.com/articles/093009-1.aspx Programmatically Generating Chart Images , we examined a number of ways to generate
the chart image programmatically. This technique is useful if you want to modify the chart image before displaying it (to, say, add a watermark) or if you want
to send the chart to a recipient via email. This technique can also be used to allow the visitor to export the chart image into an alternative format.
This article shows how to let users export a chart from a web page to an alternative format. Specifically, well look at adding an "Export" button to the chart web page
that, when clicked, exports the chart displayed in the web page to either an image file that can be downloaded or as a PDF file. Read on to learn more!
http://www.4guysfromrolla.com/articles/100610-1.aspx" class="readmore Read More >
View the full article