Frage

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,

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top