Profile Picture

Right to left text

Posted By Tal Harari 14 Years Ago
Author
Message
Tal Harari
Posted 14 Years Ago
View Quick Profile
Junior Member

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
Last Active: 9 Years Ago
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
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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
Posted 14 Years Ago
View Quick Profile
Junior Member

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
Last Active: 9 Years Ago
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
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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
Posted 14 Years Ago
View Quick Profile
Junior Member

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
Last Active: 9 Years Ago
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.



Similar Topics


Reading This Topic