Results 1 to 2 of 2

Thread: D3 colorAxis processor

  1. #1
    Sencha Premium User
    Join Date
    Jun 2017
    Posts
    6

    Default D3 colorAxis processor

    I'm trying to use the d3 color processor without any luck.
    The code never enters the processor function.
    In the example below I'm trying to change the color on a HeatMap tile to green if the value is 10.
    Code:
    colorAxis: 
       {
        scale: colorAxisScale,
        field: vField,
        processor: function (axis, scale, value, field) {
         if (value === 10)
          return '#00FFA9';
         return scale(value.data[field]);
        }
     },
    Any ideas?
    Last edited by MagnusDy; 28 Nov 2017 at 4:08 AM. Reason: couldnt add tags

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    Hi--,

    Do you have (or can you put together) a Fiddle demonstrating your scenario/configs so I can review?

    Regards,
    Bryan

Similar Threads

  1. Replies: 1
    Last Post: 3 May 2011, 2:18 AM
  2. Model Processor example?
    By hiinsu in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 9 Aug 2010, 8:10 AM
  3. Jackson Java JSON-processor
    By dtex-lab in forum Community Discussion
    Replies: 6
    Last Post: 29 Mar 2010, 7:35 AM
  4. Status Bar - Word Processor example
    By sanjshah in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 30 Aug 2009, 10:38 AM
  5. Processor on 98% after page is loaded
    By random0xff in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 23 Nov 2007, 10:33 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
  •