We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 329cf8a commit 814c283Copy full SHA for 814c283
1 file changed
src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_chart.tsx
@@ -957,7 +957,10 @@ export function XYChart({
957
tickLabelMaxLength={
958
xAxisConfig?.truncate ?? (isHorizontalBarChart ? '40%' : undefined)
959
}
960
- tickLabelTruncate={isHorizontalBarChart ? ('middle' as const) : undefined}
+ tickLabelTruncate={
961
+ // If legacy truncate is set, preserve end truncation behavior.
962
+ isHorizontalBarChart ? (xAxisConfig?.truncate ? 'end' : 'middle') : undefined
963
+ }
964
{...getOverridesFor(overrides, 'axisX')}
965
/>
966
{isSplitChart && splitTable && (
0 commit comments