1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    19
    Vote Rating
    0
    alabs is on a distinguished road

      0  

    Default Unanswered: ExtJS 4 Smart legend extension, how to restrict width of legend

    Unanswered: ExtJS 4 Smart legend extension, how to restrict width of legend


    I'm using Smart legend extension to break the legend into 2 columns if too many categories are in.

    But some legend have really lengthy text which will cause the legend to take up too much space and cause the chart to render really small. Is there any way to fix this issue?
    Attached Images

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,811
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    That is a commercial product and you should then try to get support from the author
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User Jeegnesh's Avatar
    Join Date
    Feb 2013
    Location
    Khedbrahma
    Posts
    30
    Answers
    1
    Vote Rating
    0
    Jeegnesh is on a distinguished road

      0  

    Default


    please help me,
    My code Like this

    me.chart = new Ext.create('Ext.chart.Chart', {
    width: me.width, height: me.height,
    store: chartStore, animate: me.animate,
    shadow: me.shadow,
    legend: true,
    backGround: me.backGround,
    axes: me.axes, series: me.series
    });

    legend = me.chart.legend = new Ext.create('Ext.ux.chart.SmartLegend', {
    position: 'bottom',
    chart: me.chart,
    rebuild: true,
    boxStrokeWidth: 1
    });


    me.chart.legend.redraw();
    me.chart.redraw();

    then it give me error of

    Microsoft JScript runtime error: Unable to get value of the property 'add': object is null or undefined

    on this line

    box = me.boxSprite = me.chart.surface.add(Ext.apply({ . .


    of ext-all-debug.js file

Thread Participants: 2

Tags for this Thread