Convert Chart to Localized Image with Python via .NET

Scenario

When might you need to set the localized region for a chart?

If you open an XLSX file containing a chart in Excel with Spanish regional settings, elements like the chart title and legend appear in Spanish. However, saving this chart as an image using Aspose.Cells might result in these elements remaining in English by default:

Global Issue

This occurs because the chart legend in the output image doesn’t match Excel’s localization. You can resolve this by configuring the chart’s localized region settings.

Supported Elements

The following chart elements will render according to your localization settings:

Supported Elements Default Value (English)
Axis Title Name Axis Title
Axis Unit Name Hundreds, Thousands…
Chart Title Name Chart Title
Legend Increase Name Increase
Legend Decrease Name Decrease
Legend Total Name Total
Other Name Other
Series Name Series