문제

I am creating JFreeChart by following method:

chart = ChartFactory.createBarChart3D
           ("", // chart title
            "", // domain axis label
            "",
            dataset, // data                
            PlotOrientation.HORIZONTAL, // orientation
            false, // include legend
            true, // tooltips?
            false // URLs?
            );

enter image description here

My dataset contains UTF-8 characters including chinese,japanese,hindi..etc. so in tables data under the graph it shows data properly whatever language it comes in. But in case of graph it is showing Just square brackets.. Please help me how can i solve this problem?

Thanks in advance,

도움이 되었습니까?

해결책

You need to use a font that has glyphs for those characters, otherwise the system will just render them as empty box placeholders.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top