Results 1 to 3 of 3

Thread: Chart setColors() does not work

    You found a bug! We've classified it as EXTJS-26947 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User
    Join Date
    May 2015
    Posts
    163
    Vote Rating
    45
      0  

    Default Chart setColors() does not work

    Please see this Fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2feq

    If you set the chart colors as part of the config then it works

    If you use the setColors() function it doesn't

    Is this a bug? The documentation suggests that it should work.

  2. #2
    Sencha Premium User
    Join Date
    May 2015
    Posts
    163
    Vote Rating
    45
      0  

    Default

    Raised as a bug in either code or documentation.

    Workaround is to use getTheme() e.g.:
    chart.getTheme().setColors(['red', 'orange', 'green']);

  3. #3
    Sencha - Support Team
    Join Date
    Sep 2017
    Posts
    67
    Vote Rating
    -114
      0  

    Default

    Thank you for reporting this. This has been reported earlier and the bug report is still open,
    As mentioned, the workaround can be found in the fiddle below:

    https://fiddle.sencha.com/#view/editor&fiddle/2fo6


    Regards,
    Joe

Similar Threads

  1. Chart doesn't work
    By TWEESTY in forum Ext: Q&A
    Replies: 13
    Last Post: 21 May 2013, 7:08 AM
  2. tooltip does not work with chart
    By shydreamz in forum Sencha Touch 1.x: Charts
    Replies: 1
    Last Post: 15 Jun 2012, 6:41 AM
  3. Replies: 0
    Last Post: 13 Dec 2011, 12:47 PM
  4. Does this gantt chart work for anyone else??
    By chris24300 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 8 Apr 2011, 12:34 PM
  5. Pie chart : autoHeight don't work
    By yegortitov in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 13 Aug 2009, 4:56 AM

Posting Permissions

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