Search code examples
javaandroidteechart

Teechart: how remove values from legend?


I'm trying to customize Teechart Pie. Now it looks this: pie chart

As you can see, there are values and names in the legend. How can I remove values and leave only names in the legend?

Thank you.


Solution

  • Use this to force the legend to only show the labels:

    tChart1.getLegend().setTextStyle(LegendTextStyle.PLAIN);