Right to left text


Author
Message
Tal Harari
Tal Harari
Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)
Group: Forum Members
Posts: 19, Visits: 2
Hi,
I want my text on the axis, legends and tooltips to be displayed right to left, but it seems the text is always shown left to right.
is there a way to change the direction of the text shown on my charts??
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Tal,

You can change the text initial direction using the string format style - for example:

NChart chart = nChartControl1.Charts[0];
NAxis axis = chart.Axis(StandardAxis.PrimaryY);
NLinearScaleConfigurator scale = axis.ScaleConfigurator as NLinearScaleConfigurator;

scale.Title.TextStyle.StringFormatStyle.TextDirection = TextDirection.RightToLeft;

Not sure however if this is 100% Unicode Bidi compliant. Can you post the text and the desired appearance?



Best Regards,
Nevron Support Team


Tal Harari
Tal Harari
Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)
Group: Forum Members
Posts: 19, Visits: 2
Hi again,
My text is in hebrew which is a right to left language, and it doesn't seem to work changing the text direction. Also i've noticed there is no TextStyle to tooltips (InteractivityStyle).
My tooltips are aligned to the left instead of the right and it looks kinda silly with rtl text..
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Tal,

Is the problem related to tooltips only or to the scale labels as well? We use the standard Windows tooltip control and will check if there are directionality settings there.



Best Regards,
Nevron Support Team


Tal Harari
Tal Harari
Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)Junior Member (19 reputation)
Group: Forum Members
Posts: 19, Visits: 2
My main problems are the following:
1. The axis labels are not shown rtl, thus my text is somtimes inverted (numbers that should come before letters are shown after them and stuff like that).
2. The tooltips are aligned to the left instead of the right which looks wierd with rtl text, and causes the same problem with the inverted text.
3. The legend items texts are also ltr - same problem.
4. The legend always shows the mark on the left of the text, but with rtl text it should be on the other side.

Thanks.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search