I'm needing to show the chart title as a string containing superscripts and/or subscripts.
I'm able to set any typical Android EditText value as:
EditText myEditText=new EditText(this);
String with="x<sub>3</sub>";
myEditText.setText(Html.fromHtml(with));
..and the editText correctly displays x with a subscript of 3.
However
chart.getHeader().setText(Html.fromHtml(with));
will not compile.
Is there some means of using the fromHtml function (Spanned CharSequence) to display the chart title?
Superscript/subscript
Re: Superscript/subscript
Hi Keith,
The texts in labels, titles, marks,... in TeeChart Java are Strings and the fromHtml function is returning an Spanned.
I've added it to the wish list to be studied for next releases (TJ71016020).
The texts in labels, titles, marks,... in TeeChart Java are Strings and the fromHtml function is returning an Spanned.
I've added it to the wish list to be studied for next releases (TJ71016020).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |