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\DefaultIn this file, use the following properties to configure auto-truncation:
Property | Description |
|---|---|
| Set to |
| Set to |
| Define the maximum height allowed for X-axis labels (e.g., |
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
.icttemplate.Use meaningful labels to avoid excessive truncation that may hinder readability.