Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to enlarge a StepColormap and center it within the top of a map? #182

Open
kburchfiel opened this issue Oct 29, 2024 · 0 comments

Comments

@kburchfiel
Copy link

kburchfiel commented Oct 29, 2024

I have an existing set of code that adds a StepColormap to a Folium map. Here's what the current version of the map looks like:

image

However, I would now like to (1) increase the size of the colormap and (2) position it at the top center of the window. Is there a way to perform these updates within the original Python function that I used to create this map? If not, a solution that involves editing the HTML file would also be acceptable.

The map's underlying HTML code can be found here. I'm thinking that the answer might involve fiddling with the code near the end of the file that constructs the colormap:

var color_map_cefe66010de7a9e3859dee6c0ad79901 = {};

    
    color_map_cefe66010de7a9e3859dee6c0ad79901.color = d3.scale.threshold()
              .domain([-4.3691813613485975, -4.349058940421438, -4.3289365194942775, -4.308814098567118, -4.288691677639958, -4.268569256712799, -4.248446835785639, -4.228324414858479, -4.208201993931319, -4.18807957300416, -4.167957152076999, -4.14783473114984, -4.12771231022268, -4.107589889295521, -4.08746746836836, -4.067345047441201, -4.047222626514041, -4.027100205586882, -4.006977784659721, -3.9868553637325617, -3.966732942805402, -3.9466105218782426, -3.9264881009510826, -3.9063656800239226, -3.886243259096763, -3.8661208381696035, -3.8459984172424435, -3.8258759963152835, -3.805753575388124, -3.7856311544609644, -3.7655087335338044, -3.7453863126066445, -3.725263891679485, -3.705141470752325, -3.6850190498251654, -3.6648966288980054, -3.644774207970846, -3.6246517870436863, -3.6045293661165263, -3.5844069451893663, -3.5642845242622068, -3.5441621033350468, -3.5240396824078872, -3.5039172614807272, -3.4837948405535677, -3.463672419626408, -3.443549998699248, -3.423427577772088, -3.4033051568449286, -3.3831827359177686, -3.363060314990609, -3.342937894063449, -3.3228154731362896, -3.30269305220913, -3.28257063128197, -3.26244821035481, -3.2423257894276505, -3.222203368500491, -3.202080947573331, -3.181958526646171, -3.1618361057190114, -3.1417136847918514, -3.121591263864692, -3.101468842937532, -3.0813464220103723, -3.061224001083213, -3.0411015801560524, -3.020979159228893, -3.0008567383017333, -2.9807343173745737, -2.9606118964474137, -2.9404894755202537, -2.920367054593094, -2.9002446336659347, -2.8801222127387747, -2.8599997918116147, -2.839877370884455, -2.819754949957295, -2.7996325290301356, -2.7795101081029756, -2.759387687175816, -2.7392652662486565, -2.719142845321496, -2.6990204243943365, -2.678898003467177, -2.6587755825400174, -2.6386531616128575, -2.6185307406856975, -2.598408319758538, -2.5782858988313784, -2.5581634779042184, -2.5380410569770584, -2.517918636049899, -2.497796215122739, -2.4776737941955793, -2.4575513732684193, -2.43742895234126, -2.4173065314141002, -2.39718411048694, -2.3770616895597803, -2.3569392686326207, -2.3368168477054607, -2.316694426778301, -2.2965720058511416, -2.2764495849239816, -2.256327163996822, -2.236204743069662, -2.216082322142502, -2.1959599012153426, -2.1758374802881826, -2.155715059361023, -2.135592638433863, -2.115470217506703, -2.095347796579544, -2.075225375652384, -2.0551029547252244, -2.0349805337980644, -2.0148581128709044, -1.994735691943745, -1.974613271016585, -1.9544908500894254, -1.9343684291622654, -1.9142460082351054, -1.8941235873079463, -1.8740011663807863, -1.8538787454536267, -1.8337563245264668, -1.8136339035993068, -1.7935114826721472, -1.7733890617449872, -1.7532666408178277, -1.7331442198906677, -1.7130217989635077, -1.6928993780363482, -1.6727769571091886, -1.652654536182029, -1.632532115254869, -1.6124096943277095, -1.5922872734005495, -1.5721648524733896, -1.55204243154623, -1.53192001061907, -1.5117975896919105, -1.4916751687647505, -1.471552747837591, -1.4514303269104314, -1.4313079059832714, -1.4111854850561119, -1.3910630641289519, -1.3709406432017919, -1.3508182222746323, -1.3306958013474723, -1.3105733804203128, -1.2904509594931528, -1.2703285385659928, -1.2502061176388337, -1.2300836967116737, -1.2099612757845142, -1.1898388548573542, -1.1697164339301942, -1.1495940130030347, -1.1294715920758747, -1.1093491711487151, -1.0892267502215551, -1.0691043292943951, -1.0489819083672356, -1.028859487440076, -1.0087370665129165, -0.9886146455857565, -0.9684922246585965, -0.948369803731437, -0.928247382804277, -0.9081249618771174, -0.8880025409499575, -0.8678801200227979, -0.8477576990956379, -0.8276352781684779, -0.8075128572413188, -0.7873904363141588, -0.7672680153869993, -0.7471455944598393, -0.7270231735326793, -0.7069007526055198, -0.6867783316783598, -0.6666559107512002, -0.6465334898240402, -0.6264110688968803, -0.6062886479697212, -0.5861662270425612, -0.5660438061154016, -0.5459213851882416, -0.5257989642610816, -0.5056765433339221, -0.4855541224067621, -0.46543170147960256, -0.44530928055244257, -0.4251868596252826, -0.40506443869812303, -0.3849420177709635, -0.3648195968438035, -0.34469717591664395, -0.3245747549894844, -0.30445233406232397, -0.2843299131351644, -0.2642074922080049, -0.24408507128084533, -0.2239626503536858, -0.20384022942652535, -0.1837178084993658, -0.16359538757220538, -0.14347296664504672, -0.12335054571788628, -0.10322812479072674, -0.0831057038635663, -0.06298328293640676, -0.0428608620092481, -0.022738441082087668, -0.0026160201549281226, 0.01750640077223231, 0.03762882169939186, 0.0577512426265514, 0.07787366355371095, 0.09799608448087138, 0.11811850540803093, 0.13824092633519136, 0.15836334726235002, 0.17848576818950956, 0.19860818911667, 0.21873061004382954, 0.23885303097098998, 0.25897545189814863, 0.27909787282530907, 0.2992202937524686, 0.31934271467962905, 0.3394651356067886, 0.35958755653394725, 0.3797099774611077, 0.39983239838826723, 0.41995481931542766, 0.4400772402425872, 0.46019966116974675, 0.4803220820969063, 0.5004445030240667, 0.5205669239512263, 0.5406893448783867, 0.5608117658055454, 0.5809341867327049, 0.6010566076598653, 0.6211790285870249, 0.6413014495141853, 0.661423870441344, 0.6815462913685044, 0.701668712295664, 0.7217911332228244, 0.741913554149984, 0.7620359750771435, 0.782158396004303, 0.8022808169314626, 0.822403237858623, 0.8425256587857826, 0.8626480797129421, 0.8827705006401017, 0.9028929215672621, 0.9230153424944216, 0.9431377634215821, 0.9632601843487407, 0.9833826052759012, 1.0035050262030607, 1.0236274471302202, 1.0437498680573798, 1.0638722889845393, 1.0839947099116998, 1.1041171308388593, 1.1242395517660198, 1.1443619726931784, 1.1644843936203388, 1.1846068145474984, 1.2047292354746588, 1.2248516564018184, 1.244974077328977, 1.2650964982561375, 1.285218919183297, 1.3053413401104574, 1.325463761037617, 1.3455861819647765, 1.365708602891936, 1.3858310238190965, 1.405953444746256, 1.4260758656734156, 1.4461982866005751, 1.4663207075277347, 1.4864431284548951, 1.5065655493820547, 1.526687970309215, 1.5468103912363738, 1.5669328121635342, 1.5870552330906937, 1.6071776540178542, 1.6273000749450137, 1.6474224958721724, 1.6675449167993328, 1.6876673377264924, 1.7077897586536528, 1.7279121795808123, 1.7480346005079719, 1.7681570214351314, 1.7882794423622919, 1.8084018632894514, 1.8285242842166118, 1.8486467051437705, 1.86876912607093, 1.8888915469980905, 1.90901396792525, 1.9291363888524105, 1.9492588097795691, 1.9693812307067295, 1.989503651633889, 2.0096260725610495, 2.029748493488209, 2.0498709144153686, 2.069993335342528, 2.0901157562696877, 2.110238177196848, 2.1303605981240077, 2.1504830190511672, 2.170605439978327, 2.190727860905487, 2.2108502818326468, 2.230972702759807, 2.251095123686966, 2.2712175446141263, 2.291339965541286, 2.3114623864684454, 2.331584807395606, 2.3517072283227645, 2.371829649249925, 2.3919520701770844, 2.412074491104245, 2.4321969120314044, 2.452319332958564, 2.4724417538857235, 2.492564174812884, 2.5126865957400435, 2.532809016667202, 2.5529314375943626, 2.573053858521522, 2.5931762794486826, 2.613298700375842, 2.6334211213030017, 2.653543542230161, 2.6736659631573216, 2.693788384084481, 2.7139108050116416, 2.7340332259388003, 2.75415564686596, 2.7742780677931203, 2.79440048872028, 2.8145229096474402, 2.834645330574599, 2.8547677515017593, 2.874890172428919, 2.8950125933560793, 2.915135014283239, 2.9352574352103975, 2.955379856137558, 2.9755022770647175, 2.995624697991878, 3.0157471189190375, 3.035869539846197, 3.0559919607733566, 3.076114381700517, 3.0962368026276765, 3.116359223554837, 3.1364816444819956, 3.156604065409155, 3.1767264863363156, 3.196848907263475, 3.2169713281906356, 3.2370937491177942, 3.2572161700449547, 3.277338590972114, 3.2974610118992747, 3.317583432826434, 3.3377058537535937, 3.3578282746807533, 3.377950695607913, 3.3980731165350733, 3.418195537462233, 3.4383179583893924, 3.458440379316552, 3.4785628002437123, 3.498685221170872, 3.5188076420980323, 3.538930063025191, 3.5590524839523514, 3.579174904879511, 3.5992973258066705, 3.619419746733831, 3.6395421676609905, 3.659664588588151, 3.6797870095153096, 3.69990943044247, 3.7200318513696287, 3.740154272296789, 3.7602766932239495, 3.780399114151108, 3.8005215350782686, 3.8206439560054273, 3.8407663769325877, 3.860888797859748, 3.881011218786907, 3.9011336397140672, 3.921256060641226, 3.941378481568388, 3.9615009024955468, 3.9816233234227054, 4.001745744349866, 4.0218681652770245, 4.041990586204187, 4.062113007131345, 4.082235428058504, 4.1023578489856645, 4.122480269912825, 4.142602690839985, 4.162725111767144, 4.182847532694303, 4.202969953621465, 4.2230923745486235, 4.243214795475784, 4.263337216402943, 4.283459637330101, 4.3035820582572635, 4.323704479184422, 4.343826900111583, 4.363949321038741, 4.384071741965902, 4.404194162893062, 4.424316583820221, 4.444439004747381, 4.46456142567454, 4.4846838466017, 4.504806267528861, 4.524928688456019, 4.54505110938318, 4.56517353031034, 4.585295951237499, 4.605418372164659, 4.625540793091818, 4.64566321401898, 4.665785634946139, 4.6859080558732975, 4.706030476800458, 4.726152897727617, 4.746275318654779, 4.7663977395819375, 4.786520160509096, 4.806642581436257, 4.826765002363417, 4.846887423290577, 4.867009844217736, 4.887132265144895, 4.907254686072055, 4.927377106999216, 4.947499527926376, 4.967621948853535, 4.987744369780693, 5.007866790707856, 5.027989211635014, 5.048111632562175, 5.068234053489333, 5.088356474416492, 5.108478895343654, 5.128601316270813, 5.148723737197973, 5.168846158125132, 5.188968579052292, 5.209090999979453, 5.2292134209066115, 5.249335841833772, 5.269458262760932, 5.289580683688091, 5.309703104615251, 5.32982552554241, 5.3499479464695705, 5.370070367396731, 5.39019278832389, 5.41031520925105, 5.430437630178209, 5.450560051105371, 5.4706824720325296, 5.490804892959688, 5.510927313886849, 5.531049734814007, 5.5511721557411695, 5.571294576668328, 5.591416997595487, 5.611539418522647, 5.631661839449808, 5.651784260376968, 5.671906681304127])
              .range(['#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#a50026ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#d73027ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#f46d43ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fdae61ff', '#fee08bff', '#fee08bff', '#fee08bff', '#fee08bff', '#fee08bff', '#fee08bff', '#fee08bff', '#fee08bff', '#fee08bff', '#fee08bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#d9ef8bff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#a6d96aff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#66bd63ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#1a9850ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff', '#006837ff']);
    

    color_map_cefe66010de7a9e3859dee6c0ad79901.x = d3.scale.linear()
              .domain([-4.3691813613485975, 5.671906681304127])
              .range([0, 450 - 50]);

    color_map_cefe66010de7a9e3859dee6c0ad79901.legend = L.control({position: 'topright'});
    color_map_cefe66010de7a9e3859dee6c0ad79901.legend.onAdd = function (map) {var div = L.DomUtil.create('div', 'legend'); return div};
    color_map_cefe66010de7a9e3859dee6c0ad79901.legend.addTo(map_cfd4219cbe218c3ddbd9f1690c333306);

    color_map_cefe66010de7a9e3859dee6c0ad79901.xAxis = d3.svg.axis()
        .scale(color_map_cefe66010de7a9e3859dee6c0ad79901.x)
        .orient("top")
        .tickSize(1)
        .tickValues([-4.3691813613485975, '', -0.9231412988926668, '', -0.31107943927102405, '', 0.5086200579734276, '', 2.2004854128038907, '', 5.671906681304126, '']);

    color_map_cefe66010de7a9e3859dee6c0ad79901.svg = d3.select(".legend.leaflet-control").append("svg")
        .attr("id", 'legend')
        .attr("width", 450)
        .attr("height", 40);

    color_map_cefe66010de7a9e3859dee6c0ad79901.g = color_map_cefe66010de7a9e3859dee6c0ad79901.svg.append("g")
        .attr("class", "key")
        .attr("transform", "translate(25,16)");

    color_map_cefe66010de7a9e3859dee6c0ad79901.g.selectAll("rect")
        .data(color_map_cefe66010de7a9e3859dee6c0ad79901.color.range().map(function(d, i) {
          return {
            x0: i ? color_map_cefe66010de7a9e3859dee6c0ad79901.x(color_map_cefe66010de7a9e3859dee6c0ad79901.color.domain()[i - 1]) : color_map_cefe66010de7a9e3859dee6c0ad79901.x.range()[0],
            x1: i < color_map_cefe66010de7a9e3859dee6c0ad79901.color.domain().length ? color_map_cefe66010de7a9e3859dee6c0ad79901.x(color_map_cefe66010de7a9e3859dee6c0ad79901.color.domain()[i]) : color_map_cefe66010de7a9e3859dee6c0ad79901.x.range()[1],
            z: d
          };
        }))
      .enter().append("rect")
        .attr("height", 40 - 30)
        .attr("x", function(d) { return d.x0; })
        .attr("width", function(d) { return d.x1 - d.x0; })
        .style("fill", function(d) { return d.z; });

    color_map_cefe66010de7a9e3859dee6c0ad79901.g.call(color_map_cefe66010de7a9e3859dee6c0ad79901.xAxis).append("text")
        .attr("class", "caption")
        .attr("y", 21)
        .text("");

Thank you in advance for your assistance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant