My generated chart is as follows:
To make the legend texts appear in one single line,
I am considering to increase the width of the legend section while keeping the width of the pie chart section the SAME. Do we have an approach to accomplish this?
how to increase the width of the legend section ONLY
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: how to increase the width of the legend section ONLY
Your could iterate though the pie plot's LegendItemCollection and put the item's label in a nearby JLabel, which allows HTML, or JTextField, which can scroll.
Re: how to increase the width of the legend section ONLY
Thank you. But do we have a property that controls the widths of the legend section? Or it is hard coded?John Matthews wrote:Your could iterate though the pie plot's LegendItemCollection and put the item's label in a nearby JLabel, which allows HTML, or JTextField, which can scroll.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: how to increase the width of the legend section ONLY
I am surprised to see tat you hava managed to get a roughly 50:50 split of the available space between the plot and the legend. What I would have expected to see is that the long text in the legend title is covering the entiren width of the chart area and squeezes the plot area to zero.
Can you show the code that is producing your output?
Can you show the code that is producing your output?