Dynamicreports: Remove black border wrapped legend

296 views Asked by At

I am using dynamicreports4.1.1

When I draw barCharts, I want to remove the black border wrapped the legend,

but not remove the total legend. enter image description here

I tried to customize the chart render but failed, I can't find what properties it use.

1

There are 1 answers

1
JK. On
LegendTitle legend = chart.getLegend();

    //necessary when some set showLegend=false
    if(legend!=null){
        legend.setFrame(BlockBorder.NONE);//去除legend的黑线框
    }