Standardize chart type bar and column

0 Answers 15 Views
Charts
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Benjamin asked on 13 Jun 2025, 01:14 AM

i realised the width of the width get change when the number of category changes.

example the bar width get bigger when category get lesser.

for column, the chart get center align.

 

what i wanted

for column type chart, to be left align when there is only 1 category

for bar type chart, to be top align when there is only 1 category

for all chart type, the width of the series item to be same irregardless of the number of category

Nikolay
Telerik team
commented on 17 Jun 2025, 01:15 PM

Hi Benjamin,

To standardize the behavior of Kendo UI bar and column charts with consistent widths and alignment, you'll need to configure several chart properties.

Consistent Width:

 - gap: 0.5 - Maintains consistent spacing between categories

 - spacing: 0.15 - Maintains consistent spacing between series items

 - These values ensure the same visual width regardless of category count

Alignment Control:

 - axisCrossingValue: 0 - Ensures proper alignment at the edge

Additional Recommendations:

 - Set explicit pixel width for the chart container

Please let me know in case the requirement is different.

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Share this question
or