Select the product you need help with
HOW TO: Use Automation to Set Microsoft Graph Trend Lines in Access 2000Article ID: 210024 - View products that this article applies to. This article was previously published under Q210024 On This PageSUMMARY
This article shows you how to use Automation to add, remove, and set
trend lines on a Microsoft Graph object. There are different types of trend measurements. You can use the Type property to select a specific trend to use in your graph. You can also use the Add method to add trend lines to your graph, or use the Delete method to remove trend lines. Trend lines apply only to two-dimensional graphs of the following types: Bar, Column, Line, and Scatter. The following examples use a bar graph. CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Add a Trendline and Set Its TypeThe following example adds a trend line to the first series of data and sets its type to Polynomial:
Remove a Data Series TrendlineThe following example removes the trend line from the first series of data being graphed in the earlier example:
REFERENCESFor more information about charts, click Microsoft Access Help on the Help menu, type create a chart in a form or report in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For more information about various types of trendlines, click Microsoft Access Help on the Help menu, type about choosing the best trendline for your data in a chart in the Office Assistant or the Answer Wizard, and then click Search to view the topic. PropertiesArticle ID: 210024 - Last Review: June 23, 2005 - Revision: 3.0
| Article Translations |


Back to the top








