TeeChart doesn't working with Chinese characters

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
CEIC
Newbie
Newbie
Posts: 1
Joined: Thu Dec 28, 2006 12:00 am

TeeChart doesn't working with Chinese characters

Post by CEIC » Tue Dec 11, 2007 6:49 pm

we are working with TeeChart for Java version 1, Build 1.0.1.818 and have problem for generate image (jpg format) with Chinese characters for labels. It is support for this version?

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Wed Dec 12, 2007 3:25 pm

Hello,

Chinese characters are supported. The following test checks out ok here:

Code: Select all

chart.getSeries(1).getMarks().setVisible(true);
                               
chart.getSeries(1).add(3,"序列");
chart.getSeries(1).add(6,"序列");
chart.getSeries(1).add(7,"序列");
                                
chart.getHeader().setText("序列");
If your project does not support unicode you may use \u character coding: eg. "\u5E8F\u5217"
What option to use may depend on the environment you are using. Use the UTF8 file project option if available in your programming environment.

Regards,
Marc Meumann
Steema Support

Post Reply