How to use Steema TeeChart in combination with FastReport .NET

2018-05-20

TeeChart is a library of charting. It is widely known among the programmers of the VCL platform of programmers, but it is also popular in other platforms, for example, in the .Net Framework.

FastReport .NET, since version 2018.2 supports this component in its report designer.

To add a new control element to the report, you need to apply the plug-in for the report designer. We will collect it from the project located in a folder C:\Program Files (x86)\FastReports\FastReport.Net\Extras\Misc\TeeChartObjectPlugin.

Run the report designer. On the File menu, select: .

On the "Plugins" tab we click the "Add" button:

Choose the compiled library TeeChartObjectPlugin.dll. Click OK and restart the report designer. Now, on the toolbar, there is one more element - Steema TeeChart. Add it to the report page:

 

Chart data settings are set in the properties of the TeeChart object. We need to connect the data source to the TeeChart object, set the data fields and add a series - a graph of a certain type.

First of all, we will create a connection to the database in the report. I will use a table with data on the population on different continents.

 

In the properties of the TeeChart1 object, we find the DataSource and select the Table. For the LabelField property, select the Continent field. And for YValuesField - Area.

 

To create a series of charts, double-click on the added TeeChart object. The chart editing window will appear:

 

On the Chart tab we can add a new series with the Add button. Click it:

 

We are invited to choose the type of the series. Since the functionality of the TeeChart library is very impressive, we have many types of series available on separate tabs according to the purpose. For our simple example, a standard pie chart is suitable. We choose it. In the Gallery Palette drop-down list, we can choose the color scheme of the series. Press the “Ok” button.

Now we have one series available. To edit its properties, go to the Series tab:

We have a lot of options available. For example, let’s change the frame in the series labels to a semi-circular one. On the Marks tab, select the Format tab. And note the property of Round Frame.

Now change the title of the chart. Let's return to the Chart tab in the top panel. For it, select the Titles tab at the level below:

And change «TeeChart» to «Continent population».

Scroll the list of bookmarks to the very bottom. In the end, you will find the Themes tab, where you can select the theme of the diagram:

 

For example, Black Is Black. Click the Apply button to apply the theme. Close the chart editing window and run the report in preview mode:

 

Thus, using the TeeChart component is easy enough.

September 19, 2024

How to troubleshoot the most common issues when installing FastReport VCL

We have compiled a list of the most popular problems when installing FastReport VCL and have prepared detailed instructions on how to fix the problems that have arisen.
August 12, 2024

How to build and install the Postgres plugin in FastReport .NET

This article describes how to connect to the database using the FastReport .NET plugin for the report designer from Visual Studio via the NuGet server.
August 08, 2024

How to install FastReport .NET and its components on Windows

Step-by-step instructions for online and manual installation via the FastReport registration code.NET and its components in Windows.
Fast Reports
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314

© 1998-2024 Fast Reports Inc.