Skip to content

Commit 9e411b4

Browse files
committed
refactor(chart-core): apply RTL-adjusted options at top level
1 parent 3a41bc3 commit 9e411b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/chart-core.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export function InternalCoreChart({
161161
// the Cloudscape features and custom Highcharts extensions co-exist.
162162
// For certain options we provide Cloudscape styling, but in all cases this can be explicitly overridden.
163163
const highchartsOptions: Highcharts.Options = {
164-
...options,
164+
...rtlAdjustedOptions,
165165
// Hide credits by default.
166166
credits: options.credits ?? { enabled: false },
167167
// Hide chart title by default.
@@ -296,8 +296,6 @@ export function InternalCoreChart({
296296
dataLabels: { ...Styles.pieSeriesDataLabels, ...options.plotOptions?.pie?.dataLabels },
297297
},
298298
},
299-
xAxis: rtlAdjustedOptions.xAxis,
300-
yAxis: rtlAdjustedOptions.yAxis,
301299
// We don't use Highcharts tooltip, but certain tooltip options such as tooltip.snap or tooltip.shared
302300
// affect the hovering behavior of Highcharts. That is only the case when the tooltip is not disabled,
303301
// so we render it, but hide with styles.

0 commit comments

Comments
 (0)