다음을 통해 공유


Chart Controls Overview

Applies To: Microsoft Dynamics AX 2012 R2

A Chart Control is a User Control option that enables you to display chart data in Enterprise Portal. A Chart Control provides good performance because the data needed for the chart to display is contained in the data set.

The Chart Control is an extension of the ASP.NET Chart Control. This topic describes the EP Chart Control. For information about the ASP.NET Chart Control, see Chart Control.

Elements of a Chart Control

The following table describes some of the elements that you can use in a Chart Control.

Chart Control Element

Description

Chart Title

A title on the chart. You can add any number of titles to a chart picture. This element corresponds to an item in the Titles collection.

Legend

A legend for the chart. There can be more than one legend in a chart. This element corresponds to an item in the Legend collection.

Series

A related group of data points. Each series has an associated chart type. The number of series that a chart can display and how it displays the series depends on the chart type you specify. This element corresponds to the Series class.

Axis Label

A label on an axis. It is generated automatically if no custom labels are supplied. This element corresponds to the Label class.

The following illustration shows these elements used in the chart.

Elements of a Chart Control

Data for a Chart Control

A Chart Control can display data from a Report Data Provider (RDP) class or from an analysis cube. The following table provides information about which data source to use for the Chart Control.

Data source

Description

RDP class

An RDP class contains X++ business logic to process data to display in a chart. Using an RDP class as a data source allows you to process the data at the time the chart is displayed, so the data is real time. To use an RDP class, set the DataType property of the AXChartDataSource to ReportDataProvider. You must provide an RDP class, data contract class, and a temp table to access data from an RDP class data source.

For more information, see How to: Create a Chart with Data from a Report Data Provider Class.

Analysis cube

An analysis cube consists of a set of measures and dimension attributes that provides the data to display in a chart. Using an analysis cube as a data source allows you to provide a snapshot of data from when the cube was processed. To use an analysis cube, set DataType property of the AXChartDataSource to MDXQuery. You must provide an MDX query to access data from a deployed and processed cube.

For more information, see How to: Create a Chart with Data from an Analysis Services Cube.

Tip

It is a best practice to understand the data that will display in the chart and then decide how the data should be displayed. For information about which type of chart to use for your data, see Chart Types.

Creating a Chart Control

You use Visual Studio tools for Microsoft Dynamics AX and the Microsoft Dynamics AX developer workspace to create and deploy a Chart Control. For information about how to create a Chart Control, see Walkthrough: Creating a Chart Control with Data from an Analysis Services Cube.

In This Section

How to: Create a Chart with Data from a Report Data Provider Class

How to: Create a Chart with Data from an Analysis Services Cube

How to: Format Chart Colors

Troubleshooting Charts

Walkthrough: Creating a Chart Control with Data from a Report Data Provider Class

Walkthrough: Creating a Chart Control with Data from an Analysis Services Cube

See also

User Controls Overview

Walkthrough: Quickly Creating and Deploying a User Control

Working with Analysis Services Projects