Results 1 to 3 of 3

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

  1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    19
    Vote Rating
    0
      0  

    Default 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 Attached Images

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    That is a commercial product and you should then try to get support from the author
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User Jeegnesh's Avatar
    Join Date
    Feb 2013
    Location
    Khedbrahma
    Posts
    30
    Answers
    1
    Vote Rating
    0
      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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •