Code: Select all
com.steema.teechart.TChart t = new com.steema.teechart.TChart();
getContentPane().add(t, BorderLayout.CENTER);
com.steema.teechart.styles.HorizBar b = new com.steema.teechart.styles.HorizBar();
t.addSeries(b);
b.add(35);
b.add(12);
b.add(7);
b.add(2);
b.add(1);
b.add(1);
b.add(1);
b.add(1);
b.add(1);
b.getMarks().setStyle(com.steema.teechart.styles.MarksStyle.PERCENT);
But the sum of the values is 61 and 35 is equivalent to 57,37%, 12 is equivalent to 19,67% ...
How can I display 57,37% in place of 57% ?