Reporting — Chart Localization and Bindable Properties (v23.1)

Reporting Team Blog
31 July 2023

In our most recent update (v23.1), we extended chart-related capabilities within DevExpress .NET Reports (namely the XRChart report control). You can now localize Chart UI elements and use expressions to supply values to constant lines, strip axis, chart titles, and more. These new features are available across all supported platforms (desktop and web applications).

Bind Chart Elements to Expression Results

Once you bind XRChart control in a report, you can use expressions to supply values to the chart’s UI elements (such as constant line values, strip axis values, or chart titles).

An expression can include data fields, constants, functions, report parameters, and property values of other controls.

Expressions allow you to:

  • Bind chart elements to data.
  • Format chart values.
  • Calculate summaries.
  • Hide chart elements or change their appearance.

For example, you can bind a chart’s constant line to an expression that calculates the average for all displayed values:

Once the Expression Editor is invoked for XRChart, it displays the chart element’s tree structure (available for data binding using expressions). For instance, to reproduce the screenshots above, set up a constant line expression as follows:

Review the following example or help topic to learn more:

Localize Chart Elements

Use the Localization Editor to localize chart elements when using DevExpress Reports on desktop platforms (WinForms, WPF)

When using DevExpress Reports for the web, you must first change the report’s language within the DevExpress Web Report Designer and then switch to Localization mode in the main menu:

For both WinForms and WPF Report Designers: To display localizable chart properties, first add the desired language and select the Chart option in the Property column header filter:

Once you select the Chart option, you can localize desired properties as needed:

In the following image, a localized value is used for a constant line text (German):

Review the following help topic for a list of properties you can localize within DevExpress Reports: Localize Reports.

What’s New in v23.1

If you have yet to review the features/capabilities introduced in our most recent major update, please visit the following webpage and let us know what you think of this release by responding to our online survey: Explore Our Newest Features (v23.1).

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.