Results 1 to 2 of 2

Thread: How to limit the legend label to 10 characters

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    22
    Answers
    1
    Vote Rating
    0
      0  

    Default How to limit the legend label to 10 characters

    Is it possible to just show the first 10 characters of the label used in legend?

    Please check the image below where some of the labels are not completely visible. So would like to limit all legend labels to 10 characters.

    Can this be achieved using a renderer for the series?

    LEGEND.png

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Location
    Hyderabad, India
    Posts
    117
    Answers
    6
    Vote Rating
    5
      0  

    Default

    you can limit the labels by using
    Code:
                    label: {
                        renderer: function(val) {
                            
                                return val.substring(0, 10) + "...";
                            
                        }
                    }

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
  •