I tried charts with highchairs for a block view in a multilingual site that flips between LTR and RTL and found out that the legends and tooltips break in RTL.

The legends labels overlap the colored boxes and the text within the labels is pushed outside of the tooltip box. I managed to make the latter presentable through the use of $chart['#tooltips_use_html'] = TRUE; in chart_alter. Although the text is aligned wrongly the out of box issue disappeared, however I found no similar option for the legend.

I looked at the highchairs documentation and in there a useHTML option is there for fixing this issue with legends but I am unsure about how to apply it with the hooks provided by the module.

here is a picture of it:

Thanks.

CommentFileSizeAuthor
#2 hcc.jpg61.87 KBJed_BH
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

i@majedbahar.com created an issue. See original summary.

Jed_BH’s picture

Issue summary: View changes
FileSize
61.87 KB