Hi
i got different shapes for lines using LineAndShapeRenderer,
but i cannot get the same shape for the legend .
The Legend shapes should be same shape we get for the Lines
What is the use of StandardLegend how can i use StandardLegend
class to do this, or do i have to subclass Legend and do this
thanks
Pramod
Legent with shapes
Re: Legent with shapes
Hi Pramod,
The current legend implementation doesn't take account of the shapes on the chart. In the next release I hope to have this cleared up.
Regards,
Dave Gilbert
The current legend implementation doesn't take account of the shapes on the chart. In the next release I hope to have this cleared up.
Regards,
Dave Gilbert
Re: Legent with shapes
i just tried
getChart().getPlot().getShapeFactory().getShape(i,null,xloc,yloc,lineHeight*0.7f);
in StandardLegend class.
to get shapes in the legend
Thanks
Pramod
getChart().getPlot().getShapeFactory().getShape(i,null,xloc,yloc,lineHeight*0.7f);
in StandardLegend class.
to get shapes in the legend
Thanks
Pramod
Re: Legent with shapes
Pramod,
Can you show me the example code how to use this trick in a line chcart?
Thanks,
Yu
Can you show me the example code how to use this trick in a line chcart?
Thanks,
Yu
Re: Legent with shapes
0.9.5 is now released, and the StandardLegend class has the ability to display shapes that correspond to the series in the chart.
Regards,
Dave Gilbert
Regards,
Dave Gilbert