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
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