Chinese problem?!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
hzliang

Chinese problem?!

Post by hzliang » Mon Oct 22, 2001 12:37 pm

I want to display Chinese label in the chart!
How should I do?!
Help me!!!!!

David Gilbert

RE: Chinese problem?!

Post by David Gilbert » Mon Oct 22, 2001 2:57 pm

I'm not sure. Java stores strings in Unicode format I think, so you should be able to call the setTitle() method in the JFreeChart class and pass it a string containing Chinese characters. Of course, I've never tried to do this, so I don't know where, in the chain between calling setTitle and the title actually being drawn on the Graphics2D object, something might go wrong. I'd be happy to change any code in JFreeChart that's preventing this from working...has anyone tried it?

Regards,

DG.

Jackie_chai

RE: Chinese problem?!

Post by Jackie_chai » Wed Oct 24, 2001 9:12 am

change the Font into chinese font
i have tried it

hzliang

RE: Chinese problem?!

Post by hzliang » Wed Oct 24, 2001 9:21 am

I have tried too,but I faild!

Can you tell me the material steps and some key codes?!
Thanks a lot!

Locked