charsets

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

charsets

Post by dan » Fri Feb 07, 2003 11:02 pm

I would like to use writeChartAsPNG, but I have axis in japanese (UTF-8), is there a way to do this? (characters did not display properly when I viewed the chart)

David Gilbert

Re: charsets

Post by David Gilbert » Tue Feb 11, 2003 11:21 am

Hi Dan,

The most likely problem is that your font doesn't have the required characters.

Regards,

Dave Gilbert

dan

Re: charsets

Post by dan » Tue Feb 11, 2003 11:52 pm

doesn't appear so to me, I've used both arial unicode ms and times new roman with .9.3;

.9.5 I can't run one of the demos because of the following error;

java.lang.NoSuchMethodError: com.jrefinery.chart.JFreeChartInfo.setName(Ljava/lang/String;)V
at com.jrefinery.chart.JFreeChartInfo.<init>(Unknown Source)
at com.jrefinery.chart.JFreeChart.<clinit>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createVerticalBarChart(Unknown Source)
at com.jrefinery.chart.demo.VerticalBarChartDemo.<init>(VerticalBarChartDemo.java:116)
at com.jrefinery.chart.demo.VerticalBarChartDemo.main(VerticalBarChartDemo.java:158)
Exception in thread "main"

I verified that there were no other jfreechart jars on the system and that the project was clean. This is using the binaries on the website and jdk1.4

dan

Re: charsets

Post by dan » Wed Feb 12, 2003 12:11 am

which is fixed if you include the demo.jar in the place of the binaries jar, perhaps.
I will check jcommon.jar

dan

Re: charsets

Post by dan » Wed Feb 12, 2003 12:54 am

jcommon had been 7.0 when I switched up to .9.5 and I hadn't upgraded it, so that solves the exception.

dan

Re: charsets

Post by dan » Wed Feb 12, 2003 7:23 pm

and solved the charset problem with .9.5 and Arial Unicode MS.

honest thanks for guidance!

Locked