Auto truncate X-Axis labels in Chart

Auto truncate X-Axis labels in Chart

Applies to: Kyvos Reporting


To optimize chart rendering and ensure labels do not overlap or consume excessive space, Kyvos Reporting now provides an auto-truncate feature for X-axis labels. This functionality trims long labels dynamically, enhancing chart readability and layout.

You can configure this feature through the respective .ict file for your chart templates.

Configuration File

The .ict file for JavaScript charts is located at:

<Kyvos Reporting Installation Path>\Kyvos Reporting\ReportEngine\templates\charts\amchart_javascript\Default

In this file, use the following properties to configure auto-truncation:

Property

Description

Property

Description

categoryAxis.disableEllipsisInLabels

Set to true to enable automatic truncation of X-axis labels.

categoryAxis.ellipsisPosition

Set to "suffix" to truncate trailing characters or "prefix" to truncate initial characters.

categoryAxis.maxHeight

Define the maximum height allowed for X-axis labels (e.g., "25%").

Example:

categoryAxis.disableEllipsisInLabels = true; categoryAxis.ellipsisPosition = "suffix"; categoryAxis.maxHeight = "25%";

Notes

  • Truncation is applied only when labels exceed the defined height constraint.

  • This setting affects all charts using the associated .ict template.

  • Use meaningful labels to avoid excessive truncation that may hinder readability.

image-20250722-102824.png

 

Copyright Kyvos, Inc. 2026. All rights reserved.