|
Scatter chart legend symbol size |
Posted by Jaideep on Mar-10-2011 04:25 |
|
Hi,
I am building a scatter chart with multiple layers using the following code -
chart.addScatterLayer(xdata,ydata,name,symbol,size,color,edgecolor)
this works fine, with the exception that the legend symbols take the actual size of the layer symbols - which is not always desirable. (please see the symbol size in the legend in the attached image).
Is there a way to control the size of the symbols only in the legend? Please let me know.
thanks,
Jaideep.
|
Re: Scatter chart legend symbol size |
Posted by Peter Kwan on Mar-10-2011 18:00 |
|
Hi Jaideep,
You may add an empty scatter layer to set up the symbol and label you want to show in the legend box, then add your real scatter layer to draw the actual symbol on the chart. For example, in Java:
//This layer provides the legend box entry
chart.addScatterLayer(null, null, name, symbol, legendSymbolSize, color, edgecolor);
//The following layer does not need an legend entry
chart.addScatterLayer(xdata, ydata, name, symbol, plottedSymbolSize, color, edgecolor).setLegendOrder(Chart.NoLegend);
Hope this can help.
Regards
Peter Kwan |
|