Hi All,
I am using Ubuntu 11.04. In my web application jfreechart is correct for german,French,Portuguese...But for the chinese and japanese language the text values looks like square box. I can't able to get the solution for this problem. Please solve this problem
Thanks.
Chinese and Japanese languages are not correct in JfreeChat?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Chinese and Japanese languages are not correct in JfreeC
You need to make sure the font you specify for the text in the chart actually has glyphs defined for the full set of Unicode characters.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Re: Chinese and Japanese languages are not correct in JfreeC
Hi David,
Thanks for your support. I am using the font "Lucida Grande". I am setting the font like this.
ResourceBundle bundle =ResourceBundle.getBundle("hello", Locale.);
JFreeChart jfree = ChartFactory.createStackedBarChart(bundle.getString("title"), bundle.getString("customer"), bundle.getString("services"), defaultcategorydataset, PlotOrientation.VERTICAL, false, true, false);
CategoryPlot categoryplot = (CategoryPlot)jfreechart.getPlot();
StackedBarRenderer barrend = (StackedBarRenderer)categoryplot.getRenderer();
barrend.setDrawBarOutline(false);
barrend.setBaseItemLabelsVisible(true);
barrend.setBaseItemLabelFont(new Font("Lucida Grande",Font.PLAIN,12));
Thanks,
Jack.
Thanks for your support. I am using the font "Lucida Grande". I am setting the font like this.
ResourceBundle bundle =ResourceBundle.getBundle("hello", Locale.);
JFreeChart jfree = ChartFactory.createStackedBarChart(bundle.getString("title"), bundle.getString("customer"), bundle.getString("services"), defaultcategorydataset, PlotOrientation.VERTICAL, false, true, false);
CategoryPlot categoryplot = (CategoryPlot)jfreechart.getPlot();
StackedBarRenderer barrend = (StackedBarRenderer)categoryplot.getRenderer();
barrend.setDrawBarOutline(false);
barrend.setBaseItemLabelsVisible(true);
barrend.setBaseItemLabelFont(new Font("Lucida Grande",Font.PLAIN,12));
Thanks,
Jack.
Re: Chinese and Japanese languages are not correct in JfreeC
Hi David,
Thanks for your support. I am using the font "Lucida Grande". I am setting the font like this.
ResourceBundle bundle =ResourceBundle.getBundle("hello", Locale.);
JFreeChart jfree = ChartFactory.createStackedBarChart(bundle.getString("title"), bundle.getString("customer"), bundle.getString("services"), defaultcategorydataset, PlotOrientation.VERTICAL, false, true, false);
CategoryPlot categoryplot = (CategoryPlot)jfreechart.getPlot();
StackedBarRenderer barrend = (StackedBarRenderer)categoryplot.getRenderer();
barrend.setDrawBarOutline(false);
barrend.setBaseItemLabelsVisible(true);
barrend.setBaseItemLabelFont(new Font("Lucida Grande",Font.PLAIN,12));
Thanks,
Jack.
Thanks for your support. I am using the font "Lucida Grande". I am setting the font like this.
ResourceBundle bundle =ResourceBundle.getBundle("hello", Locale.);
JFreeChart jfree = ChartFactory.createStackedBarChart(bundle.getString("title"), bundle.getString("customer"), bundle.getString("services"), defaultcategorydataset, PlotOrientation.VERTICAL, false, true, false);
CategoryPlot categoryplot = (CategoryPlot)jfreechart.getPlot();
StackedBarRenderer barrend = (StackedBarRenderer)categoryplot.getRenderer();
barrend.setDrawBarOutline(false);
barrend.setBaseItemLabelsVisible(true);
barrend.setBaseItemLabelFont(new Font("Lucida Grande",Font.PLAIN,12));
Thanks,
Jack.
Re: Chinese and Japanese languages are not correct in JfreeC
Hi David,
Please assist me.
Thanks,
Jack.
Please assist me.
Thanks,
Jack.