Results 1 to 3 of 3

Thread: How to remove border from Ext.chart.legend.Legend

  1. #1
    Sencha User
    Join Date
    Jul 2017
    Posts
    6
    Answers
    1

    Default Answered: How to remove border from Ext.chart.legend.Legend

    Hello everybody,

    I'm using ExtJS 6.5.3. I tried to remove the border from a legend of some charts (http://docs.sencha.com/extjs/6.5.3/c...nd.Legend.html).


    I have tried something like

    -----------------------------
    border: false

    or

    style: { borderColor: 'transparent' }
    -----------------------------

    but unfortunately, it didn't work. Does someone has an experience or can someone recommend me?


    Thanks in advance.

  2. Quote Originally Posted by yeghikyan View Post
    There are 2 types of legends. Switch the legend to 'dom'.
    then override the '.x-legend-item' css class.

    Thank you for your answer. It works

  3. #2
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99

    Default

    There are 2 types of legends. Switch the legend to 'dom'.
    then override the '.x-legend-item' css class.

    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  4. #3
    Sencha User
    Join Date
    Jul 2017
    Posts
    6
    Answers
    1

    Default

    Quote Originally Posted by yeghikyan View Post
    There are 2 types of legends. Switch the legend to 'dom'.
    then override the '.x-legend-item' css class.

    Thank you for your answer. It works

Similar Threads

  1. [OPEN] Strange border around chart and legend.
    By gj.gauravjain in forum Ext 5: Bugs
    Replies: 9
    Last Post: 30 Apr 2015, 3:58 PM
  2. Strange border around chart and legend.
    By gj.gauravjain in forum Ext 5: Q&A
    Replies: 8
    Last Post: 30 Apr 2015, 3:57 PM
  3. Replies: 4
    Last Post: 4 Mar 2014, 7:09 AM
  4. Replies: 1
    Last Post: 11 Jan 2012, 2:04 PM

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
  •