Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

21. Charting > 21.1. Create a Chart

21.1. Create a Chart

Problem

You want to add a chart to your application.

Solution

Create a chart of the desired type and add the appropriate ChartSeries object for that ChartType, and then add a dataProvider to the ChartSeries.

Discussion

Charts come in a variety of types, and it’s important to know what you have in your toolbox before you start working.

For every chart type, there is a corresponding ChartSeries. To add a series of data visualized as a particular type, you add the corresponding series type and bind it to a dataProvider. The ChartSeries defines the data that is shown on the x and y axes and the name of the series. A series can also have filters applied to give drop shadows and blur or glow effects.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint