PDA

View Full Version : Chart Legend overflow and drawing to BorderLayout



pdm
29 Jul 2014, 3:23 AM
I have a chart legend with too many items which overflows. Is there any solution to that yet?


I tried dynamically making a new legend and adding it to a panel:




var legend = new Ext.chart.Legend({
chart: my_chart
});
legend_panel.add(legend);



but I get errors because my entire app layout is BorderLayout based. Is there any solution to this? I don't even know if this approach would work yet.


Panel docs for add() have a notice to "See the Notes for BorderLayout for more details." but that doesn't even mention it let alone help.
http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.panel.Panel

scottmartin
29 Jul 2014, 11:03 AM
Perhaps this will help:
http://www.sencha.com/forum/showthread.php?156337