RTL not working? #28436
-
I wrapped a
However it doesn't seem to have any effect? When I step through I'm almost certain I'm using ThemeProvider wrong, but from the docs it looks like this should just work? Please tell me what I'm missing here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@ashikns you should provide <ThemeProvider theme={{ rtl: true }}>
<HorizontalBarChart data={data}
variant={HorizontalBarChartVariant.AbsoluteScale} />
</ThemeProvider> Let me know if that makes it work for you. |
Beta Was this translation helpful? Give feedback.
@ashikns, There was a change in the past to allow rtl to be set via themes dc551ba.
Charting package did not adopt this change. We will add it to our backlog. Thanks for letting us know.
Meanwhile you can set rtl using below methods that charting honors.
dir='rtl'
to root element or body element of your html page.@fluentui/react/lib/Utilities setRTL
function.isRTL=1
in your browser local storage.