Results 1 to 2 of 2

Thread: D3 Treemap set fill color

  1. #1
    Sencha User
    Join Date
    Mar 2017
    Posts
    11
    Answers
    3

    Default D3 Treemap set fill color

    Hey,

    i´m using the d3 treemap from the ext plugin to visualize some data from a json. Now i want to fill the nodes, according to a field from his json, with a specific color.
    Unfortunately I don´t find some tutorials. The normal d3 library with .attr(fill)... etc. doenst work.....

    Someone here who worked with it and has some examples ?

  2. #2
    Sencha User
    Join Date
    Mar 2016
    Posts
    44
    Answers
    2

    Default

    You should override variables:

    Code:
    $d3-selection-fill: dynamic(#f00);
    
    $d3-selection-stroke: dynamic(#f00);

Similar Threads

  1. svg - override fill color
    By janoschbatschi in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 16 Dec 2013, 11:28 AM
  2. [RC2] Chart column fill color
    By fordprefect in forum Ext: 4.x Beta
    Replies: 2
    Last Post: 9 Apr 2012, 7:20 AM
  3. Radar chart color fill
    By nicobarten in forum Ext: Discussion
    Replies: 1
    Last Post: 16 Nov 2011, 7:42 AM
  4. Different fill color for each line chart series
    By nextSTEP in forum Ext: Discussion
    Replies: 0
    Last Post: 13 Jun 2011, 4:36 AM
  5. LineChart fill color
    By dverkade in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 2 Sep 2009, 6:53 AM

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
  •