Skip to content

Instantly share code, notes, and snippets.

@davo
Created December 2, 2012 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davo/4189178 to your computer and use it in GitHub Desktop.
Save davo/4189178 to your computer and use it in GitHub Desktop.
Las 4 claves
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"name": "Problemas a resolver en BA",
"children": [
{
"name": "para que sea ACCESIBLE",
"children": [
{
"name": "Estacionar bicicletas es caro", "colour": "#61D1E2"
},
{
"name": "Falta acceso a Bicicletas", "colour": "#61D1E2"
},
{
"name": "Falta acceso a Bicicletas Públicas", "colour": "#61D1E2"
},
{
"name": "Impuestos favorables a la movilidad motorizada", "colour": "#61D1E2"
},
{
"name": "Los insumos para Bicicletas no son accesibles", "colour": "#61D1E2"
},
{
"name": "No poder usar la bicicleta en viajes", "colour": "#61D1E2"
},
{
"name": "No puedo reparar mi Bicicleta fácilmente", "colour": "#61D1E2"
}
]
},
{
"name": "para que sea ATRACTIVO",
"children": [
{
"name": "Falta cultura para combinar bicicleta y estilo personal", "colour": "#FA5655"
},
{
"name": "Falta de infraestructura para bicicletas en el trabajo", "colour": "#FA5655"
},
{
"name": "Me resulta difícil andar en Bicicleta", "colour": "#FA5655"
},
{
"name": "No me resulta interesante la Bicicleta", "colour": "#FA5655"
}
]
},
{
"name": "para que sea EFICIENTE",
"children": [
{
"name": "Bloqueo de Ciclovías", "colour": "#8dffe1"
},
{
"name": "Falta de integración de Bicicleta con otros Transportes", "colour": "#8dffe1"
},
{
"name": "Falta de legislación específica sobre Bicicletas", "colour": "#8dffe1"
},
{
"name": "Faltan Ciclovías", "colour": "#8dffe1"
},
{
"name": "Faltan estacionamientos de Bicicletas", "colour": "#8dffe1"
},
{
"name": "Las personas mayores tienen dificultades para moverse en bicicleta", "colour": "#8dffe1"
},
{
"name": "Mal estado de las ciclovías", "colour": "#8dffe1"
},
{
"name": "Mala integración de Bicicleta con otros Transportes", "colour": "#8dffe1"
},
{
"name": "No se cumple la legislación específica sobre Bicicletas", "colour": "#8dffe1"
}
]
},
{
"name": "para que sea SEGURO",
"children": [
{
"name": "Bloqueo de Ciclovías", "colour": "#D7F8FC"
},
{
"name": "Falta de convivencia entre peatones y ciclistas", "colour": "#D7F8FC"
},
{
"name": "Falta de educación vial para ciclistas", "colour": "#D7F8FC"
},
{
"name": "Falta de señalización en las ciclovías", "colour": "#D7F8FC"
},
{
"name": "Faltan Ciclovías", "colour": "#D7F8FC"
},
{
"name": "Inseguridad en las Ciclovías", "colour": "#D7F8FC"
},
{
"name": "Sensación de inseguridad física", "colour": "#D7F8FC"
}
]
}
]
}
]
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<meta charset="utf-8">
<title></title>
<head>
<meta name="description" content="">
<link href="sunburst.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
<body>
<div class="row-fluid">
<div class="span5">
<div class="row">
<div class="brand">La Vida en Bici</div>
<div class="blob">
<p><strong>BIKESTORMING DATA ARCADE</strong> permite identificar los principales problemas para usar la bici como transporte en tu ciudad</p>
</div>
<div class="bronco"></div>
</div>
</div>
<div class="span7">
<div id="vis"></div>
</div>
</div>
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script>
<script src="sunburst.js"></script>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="286px" height="165px" viewBox="-0.225 0 286 165" enable-background="new -0.225 0 286 165" xml:space="preserve">
<g>
<g>
<path fill="#D71C54" d="M41.572,73.801c0,0-44.976-47.353-41.365-73.024L3.292,0c0,0,21.087,63.719,37.075,64.996
C56.351,66.275,51.574,75.304,41.572,73.801"/>
<path fill="#D71C54" d="M41.572,73.801c0,0,12.574,9.349,27.276,44.32c0,0,9.081,20.719,26.235,33.897c0,0,6.283,7.83,8.828,8.271
l4.475-3.154c0,0,14.418,8.791,17.997,7.01c0,0,3.945-3.897,3.214-5.979c0,0,7.941,3.32,14.344,2.9c0,0,6.504,0.244,7.953,0.713
c1.446,0.463,2.412-7.648,3.436-7.254c1.021,0.396,16.359,2.596,16.93,1.822c0.567-0.775,0.813-7.265,0.813-7.265
s10,1.502,14.122-2.147c4.125-3.646,2.093-7.039,0.832-9.871c0,0,9.838-1.355,13.826-13.086c0,0,7.953,0.713,11.771-4.947
c0,0,7.146-0.95,8.14-1.65c0.99-0.697,2.909-7.99-0.865-10.165c0,0,28.902-8.094,20.347-15.446c0,0,13.788-5.256,15.231-11.102
c0,0,26.971-17.142,29.074-20.483c-1.025-0.392-14.251,6.698-14.251,6.698s-17.395,5.94-14.592,3.591l6.956-4.899
c0,0-5.057,0.22-8.934-2.625c-3.877-2.844-16.008-8.414-19.34-6.809c0,0,7.846-6.275,6.266-14.818c0,0-3.143-0.758-5.893-2.534
c-2.746-1.78-5.086-0.873-6.328,0.002s2.311-2-0.321-5.717c-2.636-3.72-7.998,0.801-9.91,1.782
c-1.918,0.975-1.479-7.878-0.736-8.403l0.746-0.525c0,0-13.846-3.248-21.985-1.597c0,0-0.711-6.657,0.104-9.453
c0,0-3.905,0.796-7.139,0.566c-3.233-0.224-12.607,1.917-15.219,3.756c-2.61,1.84,2.84-5.062,0.235-9.921
c-5.086-0.873-15.457,4.203-18.647,5.613c0,0,0.812-7.533-2.444-8.581c-3.255-1.053-17.179,3.743-21.148,6.817
c0,0,0.013-1.959-3.554-5.021C125.85,5.045,101.382,27.3,90.714,28.41c-10.666,1.106-32.706,45.332-50.348,36.585
C40.367,64.996,46.945,67.977,41.572,73.801"/>
<path fill="#FFFFFF" d="M129.261,93.166h0.668c2.77,0.049,4.352,1.528,4.748,4.438l-0.223,1.261l-0.223,0.666
c0,0.147-0.074,0.346-0.223,0.592l-0.074,0.222l-1.113,1.777l-0.148,0.146l-0.223,0.666l-0.297,0.445l-0.37,0.812
c-0.099,0.248-0.198,0.422-0.297,0.52l-0.668,1.186l-1.113,1.851c-0.197,0.297-0.396,0.69-0.593,1.185
c-0.148,0.248-0.297,0.555-0.445,0.926s-0.371,0.776-0.668,1.221l-0.742,1.333l-0.074,0.224c-0.297,0.396-0.545,0.911-0.742,1.555
l-0.223,0.369l-0.223,0.224l-0.148,0.368c-0.297,0.543-0.594,1.014-0.891,1.406l-0.445,0.74c-0.099,0.346-0.296,0.741-0.593,1.184
l-0.52,0.965c0.346,0.048,0.717,0.023,1.112-0.075c0.148,0.05,0.347,0.075,0.594,0.075c0.247-0.1,0.52-0.149,0.816-0.149
l0.223-0.073h2.004c0.248,0.1,0.544,0.1,0.89,0l0.148,0.073c0.495-0.147,1.063-0.194,1.707-0.147l0.298-0.072l1.335,0.072
c0.396,0.051,0.865,0.026,1.409-0.072l0.297,0.221c0,0.248-0.123,0.42-0.371,0.52c-0.296-0.049-0.692-0.073-1.188-0.073
l-0.963-0.074l-0.446,0.074l-0.224-0.074l-0.52,0.074c-0.197,0-0.444,0.024-0.74,0.073l-1.707,0.072l-0.445-0.146
c-0.445,0.1-0.99,0.146-1.633,0.146h-0.371c-0.396,0.101-0.816,0.125-1.261,0.074c-0.347,0.15-0.792,0.223-1.337,0.223
c-0.246,0.101-0.42,0.148-0.519,0.148c-0.148-0.148-0.247-0.346-0.297-0.592l1.112-1.406c0.198-0.296,0.396-0.667,0.595-1.111
l1.038-1.774l0.148-0.15l2.672-5.032l0.148-0.222c0.099-0.297,0.246-0.592,0.445-0.889l0.223-0.593
c0.148-0.196,0.32-0.493,0.52-0.889l1.188-2c0.098-0.244,0.246-0.492,0.444-0.738c0.099-0.246,0.148-0.42,0.148-0.52l0.223-0.146
l0.148-0.371l0.223-0.37l0.594-1.259c0.147-0.346,0.37-0.689,0.667-1.035l0.074-0.147c0.1-0.196,0.272-0.442,0.52-0.741
c0.05-0.244,0.148-0.517,0.297-0.812l0.223-0.443l0.148-1.186l0.074-0.146v-0.74c-0.396-1.433-1.385-2.492-2.968-3.184
c-1.781-0.396-3.389,0.074-4.823,1.406l-0.297,0.887l-0.148,0.297c-0.049,0.297-0.173,0.617-0.371,0.963v0.221l-0.148,0.298
l-0.371,1.259l-0.223,0.443l-0.074,0.297c-0.098,0.296-0.174,0.642-0.223,1.035l-0.073,0.371l0.147,0.593l-0.147,0.222
c-0.248,0.05-0.495-0.023-0.743-0.222c0.05-0.248,0.149-0.52,0.298-0.814c-0.05-0.493,0.049-0.985,0.297-1.481
c0-0.195,0.073-0.442,0.222-0.738l0.52-1.776l0.371-0.739c0.05-0.396,0.223-0.914,0.52-1.557
C126.738,93.955,127.876,93.412,129.261,93.166"/>
<path fill="none" stroke="#FFFFFF" stroke-width="1.8239" d="M129.261,93.166h0.668c2.77,0.049,4.352,1.528,4.748,4.438
l-0.223,1.261l-0.223,0.666c0,0.147-0.074,0.346-0.223,0.592l-0.074,0.222l-1.113,1.777l-0.147,0.146l-0.224,0.666l-0.297,0.445
l-0.37,0.812c-0.099,0.248-0.198,0.422-0.297,0.52l-0.668,1.186l-1.113,1.851c-0.197,0.297-0.396,0.69-0.593,1.185
c-0.148,0.248-0.297,0.555-0.445,0.926s-0.371,0.776-0.668,1.221l-0.742,1.333l-0.074,0.224c-0.297,0.396-0.545,0.911-0.742,1.555
l-0.223,0.369l-0.223,0.224l-0.148,0.368c-0.297,0.543-0.594,1.014-0.891,1.406l-0.445,0.74c-0.099,0.346-0.296,0.741-0.593,1.184
l-0.52,0.965c0.346,0.048,0.717,0.023,1.112-0.075c0.148,0.05,0.347,0.075,0.594,0.075c0.247-0.1,0.52-0.149,0.816-0.149
l0.223-0.073h2.004c0.248,0.1,0.544,0.1,0.89,0l0.148,0.073c0.495-0.147,1.063-0.196,1.707-0.147l0.298-0.072l1.335,0.072
c0.396,0.051,0.865,0.026,1.409-0.072l0.297,0.221c0,0.248-0.123,0.42-0.371,0.52c-0.296-0.049-0.692-0.073-1.187-0.073
l-0.964-0.074l-0.446,0.074l-0.224-0.074l-0.52,0.074c-0.197,0-0.444,0.024-0.74,0.073l-1.707,0.072l-0.445-0.146
c-0.445,0.1-0.99,0.146-1.633,0.146h-0.371c-0.396,0.101-0.816,0.125-1.261,0.074c-0.347,0.15-0.792,0.223-1.337,0.223
c-0.246,0.101-0.42,0.148-0.519,0.148c-0.148-0.148-0.247-0.346-0.297-0.592l1.112-1.406c0.198-0.296,0.396-0.667,0.595-1.111
l1.038-1.774l0.148-0.15l2.672-5.032l0.148-0.222c0.099-0.297,0.246-0.592,0.445-0.889l0.223-0.593
c0.148-0.196,0.32-0.493,0.52-0.889l1.188-2c0.098-0.244,0.246-0.492,0.444-0.738c0.099-0.246,0.148-0.42,0.148-0.52l0.223-0.146
l0.148-0.371l0.223-0.37l0.594-1.259c0.147-0.346,0.37-0.689,0.667-1.035l0.074-0.147c0.1-0.196,0.272-0.442,0.52-0.741
c0.05-0.244,0.149-0.517,0.298-0.812l0.222-0.443l0.148-1.186l0.074-0.146v-0.74c-0.396-1.433-1.385-2.492-2.968-3.184
c-1.781-0.396-3.389,0.074-4.823,1.406l-0.297,0.887l-0.148,0.297c-0.049,0.297-0.173,0.617-0.371,0.963v0.221l-0.148,0.298
l-0.371,1.259l-0.223,0.443l-0.074,0.297c-0.098,0.296-0.174,0.642-0.223,1.035l-0.073,0.371l0.147,0.593l-0.147,0.222
c-0.248,0.05-0.495-0.023-0.743-0.222c0.05-0.248,0.149-0.52,0.298-0.814c-0.05-0.493,0.049-0.985,0.297-1.481
c0-0.195,0.073-0.442,0.222-0.738l0.52-1.776l0.371-0.739c0.05-0.396,0.223-0.914,0.52-1.557
C126.738,93.955,127.876,93.412,129.261,93.166z"/>
<path fill="#FFFFFF" d="M144.583,93.166c1.483-0.099,2.819,0.642,4.007,2.22c2.475,1.875,3.784,4.54,3.934,7.995v1.777
l-0.074,0.221v1.259c0,0.198-0.024,0.443-0.074,0.74l-0.075,0.223v0.963l-0.073,0.369l-0.074,0.444l-0.073,0.519
c-0.101,0.197-0.173,0.442-0.224,0.739l-0.148,0.814l-0.146,0.442l-0.074,0.445l-0.223,1.184l-0.076,0.224
c-0.147,0.346-0.271,0.739-0.369,1.184l-0.223,0.521c-0.15,0.197-0.272,0.441-0.373,0.74l-1.111,1.405l-0.371,0.369l-0.223,0.297
l-0.223,0.147l-0.594,0.667c-0.148,0.146-0.348,0.297-0.596,0.442l-0.369,0.369c-0.445,0.199-0.965,0.322-1.56,0.371
c-0.989,0.148-2.004,0-3.042-0.443l-0.148,0.072l-1.335-0.812c-0.199-0.198-0.471-0.396-0.817-0.595
c-0.247-0.196-0.495-0.492-0.741-0.887l-0.297-0.223c-0.348-0.395-0.645-0.938-0.891-1.629l-0.148-0.148l-0.075-0.369
c-0.198-0.297-0.346-0.69-0.444-1.184l-0.297-0.891l-0.074-0.517l-0.223-0.593c0.049-0.443,0-0.964-0.148-1.557l0.148-0.59
c-0.05-0.051-0.074-0.149-0.074-0.297c0.049-0.347,0.074-0.766,0.074-1.26c0.049-0.395,0.025-0.888-0.074-1.48v-0.222
c0.148-0.396,0.197-0.864,0.148-1.405l0.148-0.444l0.074-0.445c0-0.295,0.023-0.517,0.074-0.666
c0.049-0.147,0.098-0.393,0.148-0.739v-0.295c0.197-0.445,0.37-1.013,0.519-1.703l0.075-0.224
c0.049-0.049,0.099-0.146,0.148-0.295l1.039-2.962c0.297-0.396,0.617-0.911,0.964-1.555c0.247-0.246,0.421-0.519,0.52-0.813
l0.148-0.073l0.445-0.298l0.37-0.295l0.149-0.073c0.148-0.148,0.37-0.271,0.668-0.371c0.197-0.146,0.493-0.295,0.89-0.442
l0.445-0.075C143.841,93.115,144.188,93.019,144.583,93.166 M144.88,93.758c-1.286,0.148-2.547,0.666-3.785,1.554
c-0.246,0.248-0.543,0.616-0.889,1.11l-0.224,0.443l-0.52,0.739l-0.667,1.631v0.222c-0.148,0.347-0.223,0.618-0.223,0.813
l-0.816,2.222l-0.075,0.442l-0.073,0.521l-0.148,0.221c0,0.347-0.051,0.74-0.148,1.187l0.074,0.146l-0.148,0.52v0.518
l-0.074,0.223v0.963c-0.051,0.246-0.051,0.47,0,0.666l-0.074,0.519c0.049,0.246,0.049,0.47,0,0.666l0.074,0.147
c-0.1,0.443-0.1,0.963,0,1.556l-0.074,0.221l0.297,1.334l0.074,0.369l0.073,0.297l0.148,0.444
c0.495,2.516,2.028,4.416,4.602,5.699c1.187,0.593,2.497,0.691,3.933,0.297c0.148-0.149,0.346-0.297,0.594-0.444l1.113-1.11
c0.049-0.099,0.148-0.173,0.297-0.223c0.197-0.197,0.396-0.468,0.592-0.812l0.299-0.148c0.1-0.197,0.346-0.568,0.742-1.111
l0.297-0.738l0.148-0.223c0.049-0.297,0.146-0.643,0.297-1.037c0-0.246,0.072-0.469,0.223-0.666l0.072-0.666l0.075-0.147v-0.298
c0.099-0.194,0.147-0.442,0.147-0.739c0.05-0.246,0.1-0.442,0.148-0.592l0.147-0.369v-0.371l0.075-0.369l0.074-0.444l0.073-0.369
l0.073-0.297c0-0.347,0.025-0.74,0.074-1.186l0.074-0.443c-0.049-0.443-0.024-1.062,0.074-1.851l0.073-0.296
c-0.147-0.494-0.173-1.062-0.073-1.703l-0.224-0.812l-0.073-0.299c0.049-0.295,0.023-0.64-0.074-1.033l-0.668-1.853l-0.593-0.889
L150,97.683l-0.223-0.371c-0.297-0.396-0.693-0.765-1.188-1.111l-0.444-0.443l-0.444-0.37l-0.892-0.888l-0.52-0.371
c-0.198,0-0.396-0.036-0.594-0.109C145.499,93.942,145.227,93.854,144.88,93.758"/>
<path fill="none" stroke="#FFFFFF" stroke-width="1.8239" d="M144.583,93.166c1.483-0.099,2.819,0.642,4.007,2.22
c2.475,1.875,3.784,4.54,3.934,7.995v1.777l-0.074,0.221v1.259c0,0.198-0.024,0.443-0.074,0.74l-0.075,0.223v0.963l-0.073,0.369
l-0.074,0.444l-0.073,0.519c-0.101,0.197-0.173,0.442-0.224,0.739l-0.148,0.814l-0.146,0.442l-0.074,0.445l-0.223,1.184
l-0.076,0.224c-0.147,0.346-0.271,0.739-0.369,1.184l-0.223,0.521c-0.15,0.197-0.272,0.441-0.373,0.74l-1.111,1.405l-0.371,0.369
l-0.223,0.297l-0.224,0.147l-0.593,0.667c-0.148,0.146-0.348,0.297-0.596,0.442l-0.369,0.369c-0.445,0.199-0.965,0.322-1.56,0.371
c-0.989,0.148-2.004,0-3.043-0.443l-0.147,0.072l-1.337-0.812c-0.197-0.198-0.469-0.396-0.815-0.595
c-0.247-0.196-0.495-0.492-0.741-0.887l-0.297-0.223c-0.348-0.395-0.645-0.938-0.891-1.629l-0.148-0.148l-0.075-0.369
c-0.198-0.297-0.346-0.69-0.444-1.184l-0.297-0.891l-0.074-0.517l-0.223-0.593c0.049-0.443,0-0.964-0.148-1.557l0.148-0.59
c-0.05-0.051-0.074-0.149-0.074-0.297c0.049-0.347,0.074-0.766,0.074-1.26c0.049-0.395,0.025-0.888-0.074-1.48v-0.222
c0.148-0.396,0.197-0.864,0.148-1.405l0.148-0.444l0.074-0.445c0-0.295,0.023-0.517,0.074-0.666
c0.049-0.147,0.098-0.393,0.148-0.739v-0.295c0.197-0.445,0.37-1.013,0.519-1.703l0.075-0.224
c0.049-0.049,0.099-0.146,0.148-0.295l1.039-2.962c0.297-0.396,0.617-0.911,0.964-1.555c0.247-0.246,0.421-0.519,0.52-0.813
l0.148-0.073l0.445-0.298l0.37-0.295l0.149-0.073c0.148-0.148,0.37-0.271,0.668-0.371c0.197-0.146,0.493-0.295,0.89-0.442
l0.445-0.075C143.841,93.115,144.188,93.019,144.583,93.166z M144.88,93.758c-1.286,0.148-2.547,0.666-3.785,1.554
c-0.246,0.248-0.543,0.616-0.889,1.11l-0.224,0.443l-0.52,0.739l-0.667,1.631v0.222c-0.148,0.347-0.223,0.618-0.223,0.813
l-0.816,2.222l-0.075,0.442l-0.073,0.521l-0.148,0.221c0,0.347-0.051,0.742-0.148,1.187l0.074,0.146l-0.148,0.52v0.518
l-0.074,0.223v0.963c-0.051,0.246-0.051,0.47,0,0.666l-0.074,0.519c0.049,0.246,0.049,0.47,0,0.666l0.074,0.147
c-0.1,0.443-0.1,0.963,0,1.556l-0.074,0.221l0.297,1.334l0.074,0.369l0.073,0.297l0.148,0.444
c0.495,2.516,2.028,4.416,4.601,5.699c1.188,0.593,2.498,0.691,3.934,0.297c0.148-0.149,0.346-0.297,0.594-0.444l1.113-1.11
c0.049-0.099,0.148-0.173,0.297-0.223c0.197-0.197,0.396-0.468,0.592-0.812l0.299-0.148c0.1-0.197,0.346-0.568,0.742-1.111
l0.297-0.738l0.148-0.223c0.049-0.297,0.146-0.643,0.297-1.037c0-0.246,0.072-0.469,0.223-0.666l0.072-0.666l0.075-0.147v-0.298
c0.099-0.194,0.147-0.442,0.147-0.739c0.05-0.246,0.1-0.442,0.148-0.592l0.147-0.369v-0.371l0.075-0.369l0.074-0.444l0.073-0.369
l0.073-0.297c0-0.347,0.025-0.74,0.074-1.186l0.074-0.443c-0.049-0.443-0.024-1.062,0.074-1.851l0.073-0.296
c-0.147-0.494-0.173-1.062-0.073-1.703l-0.224-0.812l-0.073-0.299c0.049-0.295,0.023-0.64-0.074-1.033l-0.668-1.853l-0.593-0.889
L150,97.683l-0.223-0.371c-0.297-0.396-0.693-0.765-1.188-1.111l-0.444-0.443l-0.444-0.37l-0.892-0.888l-0.52-0.371
c-0.198,0-0.396-0.036-0.594-0.109C145.499,93.942,145.227,93.854,144.88,93.758z"/>
<path fill="#FFFFFF" d="M161.947,92.979c5.047,0.347,7.025,3.258,5.938,8.734l-0.594,1.186c-0.051,0.146-0.161,0.332-0.334,0.556
c-0.174,0.221-0.408,0.405-0.705,0.555l-0.52,0.371c0.295,0.099,0.643,0.172,1.039,0.222l0.223,0.073
c1.83,1.284,2.818,3.109,2.968,5.478c0.05,0.396,0.024,0.84-0.075,1.334l0.075,0.223l-0.149,0.592l-0.073,0.148l-0.073,0.592
c-0.05,2.961-1.607,5.01-4.675,6.145c-1.287,1.084-2.796,1.431-4.527,1.035c-2.424-0.246-4.278-1.504-5.563-3.774l-0.594-0.148
c-0.05-0.543,0.196-0.715,0.741-0.517c0.843,1.677,2.177,2.861,4.009,3.552c1.879,0.89,3.758,0.666,5.639-0.666
c1.435-0.396,2.621-1.308,3.562-2.737c0.595-1.037,0.89-2.246,0.89-3.628c0.793-2.813-0.072-5.182-2.596-7.106
c-0.793-0.197-1.658-0.172-2.598,0.074c-0.643,0.049-1.162,0.073-1.559,0.073l-0.297-0.222l0.147-0.52
c1.139,0.197,2.201-0.074,3.19-0.813c1.188-0.542,1.806-1.529,1.855-2.96c0.741-2.469,0.074-4.664-2.004-6.589
c-0.939-0.444-1.954-0.616-3.043-0.519c-1.633-0.297-3.092,0.271-4.377,1.703l-0.299,0.887l-0.519-0.072
C157.594,94.215,159.227,93.127,161.947,92.979"/>
<path fill="none" stroke="#FFFFFF" stroke-width="1.8239" d="M161.947,92.979c5.047,0.345,7.025,3.258,5.938,8.734l-0.594,1.186
c-0.051,0.146-0.161,0.332-0.334,0.556c-0.174,0.221-0.408,0.405-0.705,0.555l-0.52,0.371c0.295,0.099,0.643,0.172,1.039,0.222
l0.223,0.073c1.83,1.284,2.818,3.109,2.968,5.478c0.05,0.396,0.024,0.84-0.075,1.334l0.075,0.223l-0.149,0.592l-0.073,0.148
l-0.073,0.592c-0.05,2.961-1.607,5.01-4.675,6.145c-1.287,1.084-2.796,1.431-4.527,1.035c-2.424-0.246-4.278-1.504-5.563-3.774
l-0.594-0.148c-0.05-0.543,0.196-0.715,0.741-0.517c0.843,1.677,2.177,2.861,4.009,3.552c1.879,0.89,3.758,0.666,5.639-0.666
c1.435-0.396,2.621-1.308,3.562-2.737c0.595-1.037,0.892-2.246,0.892-3.628c0.791-2.813-0.074-5.182-2.598-7.106
c-0.793-0.197-1.658-0.172-2.598,0.074c-0.643,0.049-1.162,0.073-1.559,0.073l-0.297-0.222l0.147-0.52
c1.139,0.197,2.2-0.074,3.19-0.813c1.188-0.542,1.806-1.529,1.855-2.96c0.741-2.469,0.074-4.664-2.004-6.589
c-0.939-0.444-1.954-0.616-3.043-0.519c-1.633-0.297-3.092,0.271-4.377,1.703l-0.299,0.887l-0.519-0.072
C157.594,94.215,159.227,93.127,161.947,92.979z"/>
<path fill="#FFFFFF" d="M180.016,93.166c1.483-0.099,2.819,0.642,4.008,2.22c2.473,1.875,3.783,4.54,3.933,7.995v1.777
l-0.074,0.221v1.259c0,0.198-0.024,0.443-0.073,0.74l-0.076,0.223v0.963l-0.073,0.369l-0.072,0.444l-0.076,0.519
c-0.098,0.197-0.172,0.442-0.221,0.739l-0.147,0.814l-0.149,0.442l-0.073,0.445l-0.225,1.184l-0.072,0.224
c-0.148,0.346-0.273,0.739-0.372,1.184l-0.224,0.521c-0.147,0.197-0.271,0.441-0.369,0.74l-1.113,1.405l-0.371,0.369l-0.223,0.297
l-0.223,0.147l-0.595,0.667c-0.147,0.146-0.346,0.297-0.594,0.442l-0.371,0.369c-0.444,0.199-0.965,0.322-1.56,0.371
c-0.987,0.148-2.004,0-3.041-0.443l-0.148,0.072l-1.335-0.812c-0.199-0.198-0.472-0.396-0.815-0.595
c-0.248-0.196-0.496-0.491-0.742-0.887l-0.297-0.223c-0.347-0.395-0.645-0.938-0.892-1.629l-0.147-0.148l-0.074-0.369
c-0.198-0.297-0.348-0.69-0.445-1.184l-0.297-0.891l-0.074-0.517l-0.223-0.593c0.05-0.443,0-0.964-0.146-1.557l0.146-0.59
c-0.049-0.051-0.074-0.149-0.074-0.297c0.049-0.347,0.074-0.766,0.074-1.26c0.05-0.395,0.025-0.888-0.074-1.48v-0.222
c0.148-0.396,0.197-0.864,0.148-1.405l0.147-0.444l0.074-0.445c0-0.295,0.024-0.517,0.073-0.666
c0.05-0.147,0.101-0.393,0.148-0.739v-0.295c0.197-0.445,0.371-1.013,0.52-1.703l0.074-0.224c0.051-0.049,0.1-0.146,0.148-0.295
l1.039-2.962c0.297-0.396,0.618-0.911,0.965-1.555c0.247-0.246,0.42-0.519,0.52-0.813l0.148-0.073l0.445-0.298l0.371-0.295
l0.148-0.073c0.147-0.148,0.37-0.271,0.668-0.371c0.196-0.146,0.493-0.295,0.889-0.442l0.445-0.075
C179.273,93.115,179.621,93.019,180.016,93.166 M180.312,93.758c-1.287,0.148-2.547,0.666-3.783,1.554
c-0.248,0.248-0.545,0.616-0.891,1.11l-0.224,0.443l-0.521,0.739l-0.668,1.631v0.222c-0.147,0.347-0.223,0.618-0.223,0.813
l-0.816,2.222l-0.074,0.442l-0.073,0.521l-0.147,0.221c0,0.347-0.05,0.74-0.148,1.187l0.074,0.146l-0.148,0.52v0.518l-0.074,0.223
v0.963c-0.049,0.246-0.049,0.47,0,0.666l-0.074,0.519c0.049,0.246,0.049,0.47,0,0.666l0.074,0.147c-0.1,0.443-0.1,0.963,0,1.556
l-0.074,0.221l0.297,1.334l0.074,0.369l0.074,0.297l0.148,0.444c0.494,2.516,2.027,4.416,4.601,5.699
c1.187,0.593,2.497,0.691,3.933,0.297c0.148-0.149,0.347-0.297,0.595-0.444l1.112-1.11c0.049-0.099,0.148-0.173,0.297-0.223
c0.197-0.197,0.396-0.468,0.595-0.812l0.297-0.148c0.099-0.197,0.347-0.568,0.741-1.111l0.298-0.738l0.147-0.223
c0.049-0.297,0.147-0.643,0.297-1.037c0-0.246,0.074-0.469,0.223-0.666l0.074-0.666l0.074-0.147v-0.298
c0.099-0.194,0.147-0.442,0.147-0.739c0.05-0.246,0.099-0.442,0.147-0.592l0.148-0.369v-0.371l0.075-0.369l0.073-0.444
l0.074-0.369l0.074-0.297c0-0.347,0.023-0.74,0.073-1.186l0.075-0.443c-0.051-0.443-0.025-1.062,0.072-1.851l0.076-0.296
c-0.148-0.494-0.175-1.062-0.076-1.703l-0.222-0.812l-0.075-0.299c0.051-0.295,0.024-0.64-0.074-1.033l-0.668-1.853l-0.592-0.889
l-0.297-0.222l-0.224-0.371c-0.297-0.396-0.692-0.764-1.188-1.11l-0.444-0.443l-0.445-0.37l-0.892-0.888l-0.52-0.371
c-0.197,0-0.396-0.036-0.594-0.108C180.932,93.942,180.659,93.854,180.312,93.758"/>
<path fill="none" stroke="#FFFFFF" stroke-width="1.8239" d="M180.016,93.166c1.483-0.099,2.819,0.642,4.008,2.22
c2.473,1.875,3.783,4.54,3.933,7.995v1.777l-0.074,0.221v1.259c0,0.198-0.024,0.443-0.073,0.74l-0.076,0.223v0.963l-0.073,0.369
l-0.072,0.444l-0.076,0.519c-0.098,0.197-0.172,0.442-0.221,0.739l-0.147,0.814l-0.149,0.442l-0.073,0.445l-0.225,1.184
l-0.072,0.224c-0.148,0.346-0.273,0.739-0.372,1.184l-0.224,0.521c-0.147,0.197-0.271,0.441-0.369,0.74l-1.113,1.405l-0.371,0.369
l-0.223,0.297l-0.223,0.147l-0.595,0.667c-0.147,0.146-0.346,0.297-0.594,0.442l-0.371,0.369c-0.444,0.199-0.965,0.322-1.56,0.371
c-0.987,0.148-2.004,0-3.041-0.443l-0.148,0.072l-1.335-0.812c-0.199-0.198-0.472-0.396-0.815-0.595
c-0.248-0.196-0.496-0.491-0.742-0.887l-0.297-0.223c-0.347-0.395-0.645-0.938-0.892-1.629l-0.147-0.148l-0.074-0.369
c-0.198-0.297-0.348-0.69-0.445-1.184l-0.297-0.891l-0.074-0.517l-0.223-0.593c0.05-0.443,0-0.964-0.146-1.557l0.146-0.59
c-0.049-0.051-0.074-0.149-0.074-0.297c0.049-0.347,0.074-0.766,0.074-1.26c0.05-0.395,0.025-0.888-0.074-1.48v-0.222
c0.148-0.396,0.197-0.864,0.148-1.405l0.147-0.444l0.074-0.445c0-0.295,0.024-0.517,0.073-0.666
c0.05-0.147,0.101-0.393,0.148-0.739v-0.295c0.197-0.445,0.371-1.013,0.52-1.703l0.074-0.224c0.051-0.049,0.101-0.146,0.148-0.295
l1.039-2.962c0.297-0.396,0.618-0.911,0.965-1.555c0.247-0.246,0.42-0.519,0.52-0.813l0.148-0.073l0.445-0.298l0.371-0.295
l0.148-0.073c0.146-0.148,0.37-0.271,0.668-0.371c0.196-0.146,0.493-0.295,0.889-0.442l0.445-0.075
C179.273,93.115,179.621,93.019,180.016,93.166z M180.312,93.758c-1.287,0.148-2.547,0.666-3.783,1.554
c-0.248,0.248-0.545,0.616-0.891,1.11l-0.224,0.443l-0.521,0.739l-0.668,1.631v0.222c-0.147,0.347-0.223,0.618-0.223,0.813
l-0.816,2.222l-0.074,0.442l-0.073,0.521l-0.147,0.221c0,0.347-0.05,0.742-0.148,1.187l0.074,0.146l-0.148,0.52v0.518
l-0.074,0.223v0.963c-0.049,0.246-0.049,0.47,0,0.666l-0.074,0.519c0.049,0.246,0.049,0.47,0,0.666l0.074,0.147
c-0.1,0.443-0.1,0.963,0,1.556l-0.074,0.221l0.297,1.334l0.074,0.369l0.074,0.297l0.148,0.444
c0.494,2.516,2.027,4.416,4.601,5.699c1.187,0.593,2.497,0.691,3.933,0.297c0.148-0.149,0.347-0.297,0.595-0.444l1.112-1.11
c0.049-0.099,0.148-0.173,0.297-0.223c0.197-0.197,0.396-0.468,0.595-0.812l0.297-0.148c0.099-0.197,0.347-0.568,0.741-1.111
l0.298-0.738l0.147-0.223c0.049-0.297,0.147-0.643,0.297-1.037c0-0.246,0.074-0.469,0.223-0.666l0.074-0.666l0.074-0.147v-0.298
c0.099-0.194,0.147-0.442,0.147-0.739c0.05-0.246,0.099-0.442,0.147-0.592l0.148-0.369v-0.371l0.075-0.369l0.073-0.444
l0.074-0.369l0.074-0.297c0-0.347,0.023-0.74,0.073-1.186l0.075-0.443c-0.051-0.443-0.025-1.062,0.072-1.851l0.076-0.296
c-0.148-0.494-0.175-1.062-0.076-1.703l-0.222-0.812l-0.075-0.299c0.051-0.295,0.024-0.64-0.074-1.033l-0.668-1.853l-0.592-0.889
l-0.297-0.222l-0.224-0.371c-0.297-0.396-0.692-0.764-1.188-1.11l-0.444-0.443l-0.445-0.37l-0.892-0.888l-0.52-0.371
c-0.197,0-0.396-0.036-0.594-0.108C180.932,93.942,180.659,93.854,180.312,93.758z"/>
<path fill="#FFFFFF" d="M109.242,93.172l0.762,0.072l0.485,0.067l0.347,0.139c1.524,0.046,2.863,0.691,4.019,1.936
c1.755,1.29,2.817,3.11,3.188,5.461c1.246,4.193,0.783,8.456-1.387,12.786c-0.601,0.646-1.409,1.154-2.426,1.521
c-1.616,0.277-2.425-0.553-2.425-2.487c-1.433,2.58-3.834,3.41-7.206,2.487c-0.139-0.137-0.323-0.274-0.555-0.413l-0.484-0.761
l-0.624-1.59l-0.139-0.14v-0.414c-0.14-0.323-0.208-0.737-0.208-1.243l-0.069-0.484c-0.046-0.047-0.069-0.209-0.069-0.483
l-0.068-0.208v-1.382l-0.069-0.763v-0.48c0.046-0.555,0.092-1.016,0.138-1.384v-0.207l0.139-0.483l0.068-0.482
c0-0.231,0.023-0.508,0.07-0.832l0.139-0.275l0.207-0.967c0.278-0.322,0.532-0.738,0.763-1.244l0.832-1.105l0.14-0.14l0.138-0.276
l0.692-0.481c1.709-0.877,3.441-0.924,5.197-0.14l0.277-0.069c0.185,0.321,0.461,0.646,0.831,0.968
c0.277,0.23,0.577,0.555,0.901,0.969l0.276,0.276c0.278,0.459,0.416,1.037,0.416,1.728c0.092,0.323,0.161,0.692,0.208,1.106
c0.045,0.138,0.068,0.322,0.068,0.554l0.07,0.414c-0.047,0.461-0.162,1.036-0.347,1.729l-0.069,0.414l-0.068,0.347l-0.07,0.276
l-0.068,0.345c-0.048,0.276-0.094,0.577-0.14,0.899l-0.138,0.275c-0.094,0.322-0.115,0.829-0.07,1.521
c-0.231,0.414-0.346,0.922-0.346,1.521l-0.069,0.138c-0.139,0.783,0.046,1.545,0.554,2.282c0.877,0.093,1.779-0.14,2.703-0.692
c1.755-2.58,2.518-5.599,2.287-9.055c0.092-0.599,0.092-1.314,0-2.144c-0.094-0.322-0.256-0.716-0.486-1.175
c0-0.276-0.069-0.553-0.208-0.83v-0.276l-0.138-0.345v-0.21l-0.14-0.275c-0.092-0.553-0.323-1.106-0.692-1.659v-0.207
c-3.465-4.287-7.299-4.978-11.502-2.074c-0.186,0.045-0.393,0.162-0.624,0.346l-0.484,0.209c-2.403,2.072-3.742,4.838-4.02,8.293
c-0.139,0.416-0.254,0.922-0.347,1.521l-0.068,0.482l-0.07,0.208v0.414l-0.068,0.208l0.068,0.206
c-0.323,1.612-0.161,3.295,0.485,5.047c0.046,0.968,0.347,2.006,0.901,3.108c0.184,0.324,0.461,0.623,0.831,0.9
c1.108,1.52,2.726,2.395,4.851,2.626c0.738,0.23,1.616,0.323,2.633,0.277l0.209,0.067l0.484-0.067l0.138-0.069l0.208,0.069
l0.416-0.277l0.139,0.069c0.184-0.184,0.416-0.275,0.693-0.275c0.092-0.094,0.23-0.186,0.415-0.277l0.139-0.139l0.416-0.275
c0.231-0.141,0.415-0.277,0.554-0.415l0.209-0.068l0.277-0.276l0.139-0.068l0.414-0.484l0.416-0.346l0.139-0.139h0.277
c0.23,0.369-0.047,0.83-0.832,1.383c-2.401,2.211-5.312,2.764-8.73,1.658c-3.418-0.781-5.404-3.109-5.958-6.98
c-0.186-0.277-0.255-0.6-0.208-0.968l-0.209-0.483l-0.068-0.139c0-0.275-0.046-0.576-0.139-0.898c0.093-0.461,0.093-0.968,0-1.521
c0.093-0.23,0.139-0.483,0.139-0.761l0.068-0.276l-0.068-0.554c0.139-0.459,0.254-1.034,0.347-1.727l0.208-0.898l0.139-0.483
c0-1.937,0.669-3.778,2.01-5.53C103.097,95.547,105.731,93.864,109.242,93.172 M107.925,98.703l-1.802,0.553l-0.347,0.209
c-1.108,0.968-1.917,2.233-2.425,3.802l-0.208,0.346c0.046,0.369,0.023,0.807-0.07,1.312v0.209
c-0.23,0.736-0.276,1.543-0.138,2.418l-0.069,0.209c0.046,0.275,0.069,0.599,0.069,0.968l0.069,0.83l0.068,0.414
c-0.045,0.184-0.023,0.413,0.07,0.69c0.139,1.336,0.669,2.627,1.594,3.871c0.416,0.137,0.947,0.229,1.594,0.274
c1.432,0.416,2.748,0.047,3.949-1.104l1.178-1.384l0.555-1.381v-0.209l0.208-0.483v-0.206l0.139-0.208
c0-0.322,0.069-0.69,0.208-1.104l0.068-0.416l0.209-0.552c0.045-0.416,0.115-0.762,0.207-1.036l0.069-0.763l0.278-0.897
c0-0.367-0.047-0.828-0.139-1.383v-0.207l-0.277-0.83v-0.207c0-0.275-0.07-0.599-0.209-0.969c-0.139-0.229-0.276-0.391-0.415-0.48
c-0.139-0.278-0.37-0.51-0.693-0.693C110.742,99.188,109.496,98.658,107.925,98.703"/>
<path fill="none" stroke="#FFFFFF" stroke-width="1.0422" d="M109.242,93.172l0.762,0.07l0.485,0.069l0.347,0.139
c1.524,0.046,2.863,0.691,4.019,1.936c1.755,1.29,2.817,3.11,3.188,5.461c1.246,4.193,0.783,8.456-1.387,12.786
c-0.601,0.646-1.409,1.154-2.426,1.521c-1.616,0.277-2.425-0.553-2.425-2.487c-1.433,2.58-3.834,3.41-7.206,2.487
c-0.139-0.137-0.323-0.274-0.555-0.413l-0.484-0.761l-0.624-1.59l-0.139-0.14v-0.414c-0.14-0.323-0.208-0.737-0.208-1.243
l-0.068-0.484c-0.047-0.047-0.07-0.209-0.07-0.483l-0.068-0.208v-1.382l-0.069-0.763v-0.48c0.046-0.555,0.092-1.016,0.138-1.384
v-0.207l0.139-0.483l0.068-0.482c0-0.231,0.023-0.508,0.07-0.832l0.139-0.275l0.207-0.967c0.278-0.322,0.532-0.738,0.763-1.244
l0.832-1.105l0.14-0.14l0.138-0.276l0.692-0.481c1.709-0.877,3.441-0.924,5.197-0.14l0.277-0.069
c0.185,0.321,0.461,0.646,0.831,0.968c0.277,0.23,0.577,0.555,0.901,0.969l0.276,0.276c0.278,0.459,0.416,1.037,0.416,1.728
c0.092,0.323,0.161,0.692,0.208,1.106c0.047,0.138,0.068,0.322,0.068,0.554l0.07,0.414c-0.047,0.461-0.162,1.036-0.347,1.729
l-0.069,0.414l-0.068,0.347l-0.07,0.276l-0.068,0.345c-0.048,0.276-0.094,0.577-0.14,0.899l-0.138,0.275
c-0.094,0.322-0.115,0.829-0.07,1.521c-0.231,0.414-0.346,0.922-0.346,1.521l-0.069,0.138c-0.139,0.783,0.046,1.545,0.554,2.282
c0.877,0.093,1.779-0.14,2.703-0.692c1.755-2.58,2.518-5.599,2.287-9.055c0.092-0.599,0.092-1.314,0-2.144
c-0.094-0.322-0.256-0.716-0.486-1.175c0-0.276-0.069-0.553-0.208-0.83v-0.276l-0.138-0.345v-0.21l-0.14-0.275
c-0.092-0.553-0.323-1.106-0.692-1.659v-0.207c-3.465-4.287-7.299-4.978-11.502-2.074c-0.186,0.045-0.393,0.162-0.624,0.346
l-0.484,0.209c-2.403,2.072-3.742,4.838-4.02,8.293c-0.139,0.416-0.254,0.922-0.347,1.521l-0.068,0.482l-0.07,0.208v0.414
l-0.068,0.208l0.068,0.206c-0.323,1.612-0.161,3.295,0.485,5.047c0.046,0.968,0.347,2.006,0.901,3.108
c0.184,0.324,0.461,0.623,0.831,0.9c1.108,1.52,2.726,2.395,4.851,2.626c0.739,0.23,1.616,0.323,2.633,0.277l0.209,0.067
l0.484-0.067l0.138-0.069l0.208,0.069l0.416-0.277l0.139,0.069c0.184-0.184,0.416-0.275,0.693-0.275
c0.092-0.094,0.23-0.186,0.415-0.277l0.139-0.139l0.416-0.275c0.231-0.141,0.415-0.277,0.554-0.415l0.209-0.068l0.277-0.276
l0.139-0.068l0.414-0.484l0.416-0.346l0.139-0.139h0.277c0.23,0.369-0.047,0.83-0.832,1.383c-2.401,2.211-5.312,2.764-8.73,1.658
c-3.418-0.781-5.404-3.109-5.958-6.98c-0.186-0.277-0.255-0.6-0.208-0.968l-0.209-0.483l-0.068-0.139
c0-0.275-0.046-0.576-0.139-0.898c0.093-0.461,0.093-0.968,0-1.521c0.093-0.23,0.139-0.483,0.139-0.761l0.068-0.276l-0.068-0.554
c0.139-0.459,0.254-1.034,0.347-1.727l0.208-0.898l0.139-0.483c0-1.937,0.669-3.778,2.01-5.53
C103.097,95.547,105.731,93.864,109.242,93.172z M107.925,98.703l-1.802,0.553l-0.347,0.209c-1.108,0.968-1.917,2.233-2.425,3.802
l-0.208,0.346c0.046,0.369,0.023,0.807-0.07,1.312v0.209c-0.23,0.736-0.276,1.543-0.138,2.418l-0.069,0.207
c0.046,0.277,0.069,0.601,0.069,0.97l0.069,0.83l0.068,0.414c-0.045,0.184-0.023,0.413,0.07,0.69
c0.139,1.336,0.669,2.627,1.594,3.871c0.416,0.137,0.947,0.229,1.594,0.274c1.432,0.416,2.748,0.047,3.949-1.104l1.178-1.384
l0.555-1.381v-0.209l0.208-0.483v-0.206l0.139-0.208c0-0.322,0.069-0.69,0.208-1.104l0.068-0.416l0.209-0.554
c0.045-0.414,0.115-0.76,0.207-1.034l0.069-0.763l0.278-0.897c0-0.367-0.047-0.828-0.139-1.383v-0.207l-0.277-0.83v-0.207
c0-0.275-0.07-0.599-0.209-0.969c-0.139-0.229-0.276-0.391-0.415-0.48c-0.139-0.278-0.37-0.51-0.693-0.693
C110.742,99.188,109.496,98.658,107.925,98.703z"/>
<path fill="#FFFFFF" d="M102.385,47.629c0.716,0.13,0.847,0.488,0.392,1.073c-0.522-0.194-1.174-0.26-1.955-0.194l-0.686,0.194
L99.354,48.8h-2.151c-0.717,0.13-1.532,0.13-2.444,0h-0.782l-0.195-0.098h-2.054c-0.392,0.585-0.619,1.269-0.685,2.049
c-0.195,0.325-0.391,0.748-0.587,1.268l-0.293,0.78l-0.294,1.073l-0.195,0.293c-0.195,0.455-0.358,1.007-0.488,1.658
c-0.131,0.39-0.326,0.812-0.588,1.268l-0.194,0.682l-0.294,0.586c-0.325,0.585-0.586,1.333-0.781,2.243
c-0.066,0.261-0.131,0.456-0.196,0.585l-0.294,1.073l1.467-0.292l0.587-0.099h0.294c4.367-1.365,7.985-0.195,10.854,3.511
c2.477,3.837,2.509,8.455,0.098,13.852c-2.869,3.512-6.682,4.844-11.439,4c-0.393-0.455-0.913-0.78-1.565-0.976l-0.294-0.39
c-0.521-0.586-1.205-1.074-2.053-1.463c-0.065-0.26-0.032-0.552,0.098-0.878c0.652,0.26,1.369,0.748,2.15,1.463
c0.327,0.325,0.783,0.65,1.37,0.975l0.194,0.195l0.783,0.488c3.715,0.585,7.008-0.618,9.876-3.609
c0.325-0.52,0.618-1.235,0.88-2.145l0.294-0.685l0.097-0.78l0.295-0.878l-0.099-0.292c1.042-3.316,0.358-6.405-2.054-9.267
c-3.585-3.382-7.725-3.805-12.418-1.269l-0.686-0.292c0.197-0.391,0.327-0.846,0.393-1.366l0.195-0.195v-0.292l0.488-1.561
l0.295-1.073c0.129-0.325,0.357-0.715,0.684-1.171c0-0.259,0.098-0.552,0.293-0.877l0.293-0.488
c0.131-0.325,0.196-0.552,0.196-0.682c0.194-0.39,0.358-0.911,0.488-1.561l0.88-2.049l0.098-0.683l0.099-0.195l0.293-0.292v-0.293
c0.195-0.909,0.424-1.69,0.685-2.34l0.098-0.292l0.783-0.195l0.293,0.195l2.248,0.097l0.294,0.098l0.293-0.098
c0.327,0.065,0.554,0.065,0.685,0l0.195,0.098h0.587c0.782-0.131,1.663-0.131,2.64,0c0.392-0.131,0.814-0.195,1.271-0.195
c0.456-0.13,0.814-0.195,1.076-0.195h0.586L102.385,47.629z"/>
<path fill="none" stroke="#FFFFFF" stroke-width="1.8239" d="M102.385,47.629c0.716,0.13,0.847,0.488,0.392,1.073
c-0.522-0.194-1.174-0.26-1.955-0.194l-0.686,0.194L99.354,48.8h-2.151c-0.717,0.13-1.532,0.13-2.444,0h-0.782l-0.195-0.098
h-2.054c-0.392,0.585-0.619,1.269-0.685,2.049c-0.195,0.325-0.391,0.748-0.587,1.268l-0.293,0.78l-0.294,1.073l-0.195,0.293
c-0.195,0.455-0.358,1.007-0.488,1.658c-0.131,0.39-0.326,0.812-0.588,1.268l-0.194,0.682l-0.294,0.586
c-0.325,0.585-0.586,1.333-0.781,2.243c-0.066,0.261-0.131,0.456-0.196,0.585l-0.294,1.073l1.467-0.292l0.587-0.099h0.294
c4.367-1.365,7.985-0.195,10.854,3.511c2.477,3.837,2.509,8.455,0.098,13.852c-2.869,3.512-6.682,4.844-11.439,4
c-0.393-0.455-0.913-0.78-1.565-0.976l-0.294-0.39c-0.521-0.586-1.205-1.074-2.053-1.463c-0.065-0.26-0.032-0.552,0.098-0.878
c0.652,0.26,1.369,0.748,2.15,1.463c0.327,0.325,0.783,0.65,1.37,0.975l0.194,0.195l0.783,0.488
c3.715,0.585,7.008-0.618,9.876-3.609c0.325-0.52,0.618-1.235,0.88-2.146l0.294-0.683l0.097-0.78l0.295-0.878l-0.099-0.292
c1.042-3.317,0.358-6.405-2.054-9.267c-3.585-3.382-7.725-3.805-12.418-1.269l-0.686-0.292c0.197-0.391,0.327-0.846,0.393-1.366
l0.195-0.195v-0.292l0.488-1.561l0.295-1.073c0.129-0.325,0.357-0.715,0.684-1.171c0-0.26,0.098-0.552,0.293-0.877l0.293-0.488
c0.131-0.325,0.196-0.552,0.196-0.682c0.194-0.39,0.358-0.911,0.488-1.561l0.88-2.049l0.098-0.683l0.099-0.195l0.293-0.292v-0.293
c0.195-0.909,0.424-1.69,0.685-2.34l0.098-0.292l0.783-0.195l0.293,0.195l2.248,0.097l0.294,0.098l0.293-0.098
c0.327,0.065,0.554,0.065,0.686,0l0.194,0.098h0.587c0.782-0.131,1.663-0.131,2.64,0c0.392-0.131,0.814-0.195,1.271-0.195
c0.456-0.13,0.814-0.195,1.076-0.195h0.586L102.385,47.629z"/>
<path fill="#FFFFFF" d="M109.328,47.434c0.391,0.066,0.555,0.293,0.488,0.683c-0.326,1.041-0.391,2.244-0.195,3.609l-0.098,3.511
l-0.098,0.195l-0.195,3.999l0.195,0.683l0.098,0.781v2.731l0.098,0.488c-0.065,0.391-0.098,0.911-0.098,1.561v3.024
c0.064,0.52,0.032,1.072-0.098,1.658l0.098,0.292v0.488l0.098,0.391l0.098,0.39l-0.098,1.951l0.098,0.195v1.951l0.098,0.584v1.171
l0.098,0.195l-0.098,0.292v2.439l0.098,0.585l0.099,0.586c1.694,0.521,3.585,0.584,5.671,0.195
c0.195,0.13,0.293,0.325,0.293,0.584c-0.064,0.065-0.195,0.164-0.391,0.292c-0.521,0.064-1.109,0.032-1.76-0.098l-0.196,0.098
h-0.685c-0.651,0.064-1.173,0.032-1.564-0.098l-1.075-0.098l-0.293-0.098c-0.326,0.065-0.685,0.065-1.077,0l-2.15,0.39
l-0.488,0.098l-0.587-0.194c0-0.26,0.099-0.521,0.294-0.78c0.978,0.195,2.053,0.098,3.227-0.292l-0.098-3.512l0.098-0.781
c-0.131-0.649-0.164-1.463-0.098-2.438l-0.098-0.39l0.098-0.292l-0.098-0.391V72.99l0.098-0.488l-0.098-1.268l-0.1-0.682v-3.805
l-0.096-0.292c0.064-0.325,0.064-0.683,0-1.074c0.064-0.195,0.096-0.454,0.096-0.78l0.1-0.292l-0.195-1.951
c0.064-0.911,0-1.658-0.197-2.244c0.066-0.194,0.066-0.455,0-0.78c0.066-0.456,0.098-1.04,0.098-1.757l0.1-0.389v-0.975
l0.096-0.39c-0.064-0.195-0.064-0.456,0-0.781l-0.096-0.292c0.13-0.455,0.162-1.007,0.096-1.658l0.1-0.488v-2.048l-0.1-0.975
l-2.248,4.292c-0.064,0.325-0.195,0.65-0.391,0.976c-0.065,0.325-0.195,0.682-0.391,1.073l-0.49,0.098l-0.194-0.39
c0.456-0.65,0.814-1.463,1.075-2.439c0.195-0.26,0.326-0.585,0.391-0.975c0.195-0.26,0.359-0.585,0.488-0.976
c0.197-0.26,0.359-0.586,0.49-0.976l0.488-0.585c0.195-0.325,0.326-0.552,0.392-0.683l0.294-0.683l0.096-0.488
C109.001,47.695,109.132,47.564,109.328,47.434"/>
<path fill="none" stroke="#FFFFFF" stroke-width="1.8239" d="M109.328,47.434c0.391,0.066,0.555,0.293,0.488,0.683
c-0.326,1.041-0.391,2.244-0.195,3.609l-0.098,3.511l-0.098,0.195l-0.195,3.999l0.195,0.683l0.098,0.781v2.731l0.098,0.488
c-0.065,0.391-0.098,0.911-0.098,1.561v3.024c0.064,0.52,0.032,1.072-0.098,1.658l0.098,0.292v0.488l0.098,0.391l0.098,0.39
l-0.098,1.951l0.098,0.195v1.951l0.098,0.584v1.171l0.098,0.195l-0.098,0.292v2.439l0.098,0.585l0.099,0.586
c1.694,0.521,3.585,0.584,5.671,0.195c0.195,0.13,0.293,0.325,0.293,0.584c-0.064,0.065-0.195,0.164-0.391,0.292
c-0.521,0.064-1.109,0.032-1.761-0.098l-0.195,0.098h-0.685c-0.651,0.064-1.173,0.032-1.564-0.098l-1.075-0.098l-0.293-0.098
c-0.326,0.065-0.685,0.065-1.077,0l-2.15,0.39l-0.488,0.098l-0.587-0.194c0-0.26,0.099-0.521,0.294-0.78
c0.978,0.195,2.053,0.098,3.227-0.292l-0.098-3.512l0.098-0.781c-0.131-0.649-0.164-1.463-0.098-2.438l-0.098-0.39l0.098-0.292
l-0.098-0.391V72.99l0.098-0.488l-0.098-1.268l-0.1-0.682v-3.805l-0.096-0.292c0.064-0.325,0.064-0.683,0-1.074
c0.064-0.195,0.096-0.454,0.096-0.78l0.1-0.292l-0.195-1.951c0.064-0.911,0-1.658-0.197-2.244c0.065-0.194,0.065-0.455,0-0.78
c0.065-0.456,0.098-1.04,0.098-1.757l0.1-0.389v-0.975l0.096-0.39c-0.064-0.195-0.064-0.456,0-0.781l-0.096-0.292
c0.13-0.455,0.162-1.007,0.096-1.658l0.1-0.488v-2.048l-0.1-0.975l-2.248,4.292c-0.064,0.325-0.195,0.65-0.391,0.976
c-0.065,0.325-0.195,0.682-0.391,1.073l-0.49,0.098l-0.194-0.39c0.456-0.65,0.814-1.463,1.075-2.439
c0.195-0.26,0.326-0.585,0.391-0.975c0.195-0.26,0.359-0.585,0.488-0.976c0.197-0.26,0.359-0.586,0.49-0.976l0.488-0.585
c0.195-0.325,0.326-0.552,0.392-0.683l0.294-0.683l0.096-0.488C109.001,47.695,109.132,47.564,109.328,47.434z"/>
<path fill="#FFFFFF" d="M123.017,47.629h1.075c0.782,0.391,1.694,0.586,2.737,0.586c0.195,0.13,0.457,0.26,0.783,0.389
c1.107,1.691,1.531,3.643,1.271,5.853c-0.131,2.796-1.793,4.39-4.987,4.78c-2.608,1.235-4.466,0.097-5.573-3.414
c0-2.406,0.685-4.747,2.053-7.024l1.174-0.683L123.017,47.629z M123.408,48.508c-0.457,0.064-0.84,0.154-1.148,0.268
c-0.343,0.211-0.645,0.285-0.905,0.219c-1.563,1.756-2.346,4-2.346,6.73c0.456,1.3,1.304,2.438,2.542,3.414
c0.782,0,1.727-0.228,2.836-0.683c0.521-0.064,1.141-0.292,1.857-0.683l0.195-0.097c0.456-0.26,0.88-0.618,1.271-1.073
c1.238-2.666,0.944-5.234-0.881-7.706c-0.456-0.13-0.945-0.195-1.466-0.195c-0.456-0.13-1.011-0.194-1.663-0.194H123.408z
M133.871,47.434c0.456,0.326,0.424,1.074-0.098,2.244l-2.054,5.854l-0.196,0.391l-0.098,0.39l-0.586,1.658
c-0.066,0.326-0.195,0.683-0.391,1.074l-0.293,0.683l-0.197,0.487l-0.293,0.585l-0.586,1.951l-0.293,0.584l-0.979,3.024
l-0.098,0.195l-0.488,1.366c-0.066,0.39-0.197,0.813-0.393,1.268l-0.098,0.683l-0.488,1.756l-0.293,0.683l-0.293,0.78
c-0.066,0.326-0.197,0.651-0.392,0.976l-0.099,0.391l-1.271,3.219l-0.294,0.683c0,0.455-0.131,0.975-0.391,1.561v0.292
l-0.293,0.975v0.292c-0.131,0.26-0.164,0.586-0.098,0.975l-0.098,0.293c-0.196,0.196-0.425,0.325-0.685,0.39l-0.099-0.683
c0.131-0.455,0.229-1.04,0.294-1.755l0.391-1.463l0.099-0.39l0.977-2.829c0.131-0.455,0.294-0.845,0.49-1.17
c0.064-0.26,0.195-0.553,0.391-0.878l1.369-4.195l0.098-0.194l0.293-1.366l0.391-0.976c0.131-0.455,0.262-0.78,0.392-0.975
c0.065-0.585,0.261-1.235,0.587-1.951c0.13-0.195,0.195-0.423,0.195-0.683l0.293-0.682l0.49-1.561l0.293-0.585v-0.292l2.443-6.243
l0.294-0.683l0.392-1.17c0.129-0.65,0.391-1.398,0.781-2.244l0.294-0.78l0.195-0.975C133.511,48.02,133.674,47.695,133.871,47.434
M130.937,69.821c1.043-0.033,2.021,0.374,2.934,1.219c1.694,3.122,1.955,6.016,0.782,8.682c-1.174,1.756-2.868,2.309-5.085,1.659
c-1.435-0.715-2.314-1.983-2.639-3.805c-0.066-1.366,0.26-2.73,0.977-4.097C128.362,71.853,129.373,70.634,130.937,69.821
M130.839,70.553c-0.391,0.325-0.848,0.78-1.369,1.365l-0.195,0.195c-2.738,5.203-1.924,8.161,2.444,8.876
c3.128-1.366,3.748-4.422,1.858-9.169l-0.979-0.975l-0.488-0.292C131.785,70.438,131.361,70.438,130.839,70.553"/>
<path fill="none" stroke="#FFFFFF" stroke-width="1.8239" d="M123.017,47.629h1.075c0.782,0.391,1.694,0.586,2.737,0.586
c0.195,0.13,0.457,0.26,0.783,0.389c1.107,1.691,1.531,3.643,1.271,5.853c-0.131,2.796-1.793,4.39-4.988,4.78
c-2.607,1.235-4.465,0.097-5.572-3.414c0-2.406,0.685-4.748,2.053-7.024l1.174-0.683L123.017,47.629z M123.408,48.508
c-0.457,0.064-0.84,0.154-1.148,0.268c-0.343,0.211-0.645,0.284-0.905,0.219c-1.563,1.756-2.346,4-2.346,6.73
c0.456,1.3,1.304,2.438,2.542,3.414c0.782,0,1.727-0.228,2.836-0.683c0.521-0.064,1.141-0.292,1.857-0.683l0.195-0.097
c0.456-0.26,0.881-0.618,1.271-1.073c1.238-2.666,0.944-5.234-0.881-7.706c-0.456-0.13-0.945-0.195-1.466-0.195
c-0.456-0.13-1.011-0.194-1.663-0.194H123.408z M133.871,47.434c0.456,0.326,0.424,1.074-0.098,2.244l-2.054,5.854l-0.196,0.391
l-0.098,0.39l-0.586,1.658c-0.066,0.326-0.195,0.683-0.391,1.074l-0.293,0.683l-0.197,0.487l-0.293,0.585l-0.586,1.951
l-0.293,0.584l-0.979,3.024l-0.098,0.195l-0.488,1.366c-0.066,0.39-0.197,0.813-0.393,1.268l-0.098,0.683l-0.488,1.756
l-0.293,0.683l-0.293,0.78c-0.066,0.326-0.197,0.651-0.392,0.976l-0.099,0.391l-1.271,3.219l-0.293,0.683
c0,0.455-0.131,0.975-0.391,1.561v0.292l-0.293,0.975v0.292c-0.131,0.26-0.164,0.586-0.098,0.975l-0.098,0.293
c-0.196,0.196-0.425,0.325-0.685,0.39l-0.099-0.683c0.131-0.455,0.229-1.04,0.294-1.755l0.391-1.463l0.099-0.39l0.977-2.829
c0.131-0.455,0.294-0.845,0.49-1.17c0.064-0.26,0.195-0.553,0.391-0.879l1.369-4.194l0.098-0.194l0.293-1.366l0.391-0.976
c0.131-0.455,0.262-0.78,0.392-0.975c0.065-0.585,0.261-1.235,0.587-1.951c0.13-0.195,0.195-0.423,0.195-0.683l0.293-0.682
l0.49-1.561l0.293-0.585v-0.292l2.443-6.243l0.294-0.683l0.392-1.17c0.129-0.65,0.391-1.398,0.781-2.244l0.293-0.78l0.196-0.975
C133.511,48.02,133.674,47.695,133.871,47.434z M130.937,69.821c1.043-0.033,2.021,0.374,2.934,1.219
c1.694,3.122,1.955,6.016,0.782,8.682c-1.174,1.756-2.868,2.309-5.085,1.659c-1.435-0.715-2.314-1.983-2.639-3.805
c-0.066-1.366,0.26-2.73,0.977-4.097C128.362,71.853,129.373,70.634,130.937,69.821z M130.839,70.553
c-0.391,0.325-0.848,0.78-1.369,1.365l-0.195,0.195c-2.738,5.202-1.924,8.161,2.444,8.876c3.128-1.366,3.748-4.422,1.858-9.169
l-0.979-0.975l-0.488-0.292C131.785,70.438,131.361,70.438,130.839,70.553z"/>
<path fill="#FFFFFF" d="M189.204,60.549c18.308-1.749,17.681,24.082,1.819,23.894c-10.515-0.123-15.883-13.64-8.188-20.869
c1.146-1.078,2.653-0.977,3.639-2.722c-0.457-0.552-0.32-1.695-0.908-2.117c-2.534,2.003-4.59,4.765-7.277,7.864
c-3.377,3.893-5.877,9.286-13.645,7.864c-1.541,6.675-7.072,10.393-13.34,9.678c-16.378-1.863-11.538-28.77,5.457-23.289
c0.94-3.107,4.201-6.049,2.729-9.679c-0.428-0.885-3.106,0.478-3.031-0.907c-0.297-2.216,2.824-1.502,4.852-1.513
c2.229-0.012,5.183-0.43,6.063,0.605c-1.302,1.121-4.142,0.708-5.458,1.815c0.407,0.602,0.578,1.439,0.91,2.117
c6.975-0.2,14.756,0.403,21.224-0.302c-0.606-1.511-0.714-3.522-2.122-4.234c-1.41-0.508-4.133,0.291-4.851-0.907v-0.908
C186.947,43.248,186.221,55.353,189.204,60.549 M184.352,55.709h-20.312c1.422,5.638,3.932,10.194,5.457,15.729
c2.777-1.346,4.906-4.383,7.277-6.957C179.45,61.575,182.21,58.913,184.352,55.709 M161.613,56.919
c-1.297,1.026-1.442,3.199-2.426,4.537c2.682,2.871,5.621,5.482,5.762,10.889h2.425C165.585,67.072,163.46,62.135,161.613,56.919
M161.916,74.463c-3.449-0.188-7.662,0.384-10.611-0.303c0-2.337,3.303-6.989,4.244-11.191
c-15.285-3.114-15.45,19.364-2.121,18.752C157.934,81.514,160.761,78.676,161.916,74.463 M189.811,62.969
c0.088,3.542,4.5,9.729,1.516,10.586c-2.047-0.856-2.547-6.533-3.941-9.679c-9.738,3.491-5.729,20.016,6.064,17.845
C203.436,79.883,203.352,61.48,189.811,62.969 M154.336,72.345h7.883c0.135-4.267-1.658-6.613-4.548-7.864
C156.841,67.383,155.294,69.57,154.336,72.345"/>
</g>
</g>
</svg>
body {
background: url(http://www.bikestorming.org/wp-content/uploads/2012/08/bikestorming-pattern-paper1.jpg);
background-repeat: repeat;
font-family: Courier, sans-serif;
}
path {
stroke: #000;
stroke-width: 1.5;
cursor: pointer;
}
text {
font: 11px sans-serif;
cursor: pointer;
}
body {
}
h1 {
text-align: center;
margin: .5em 0;
}
p#intro {
text-align: center;
margin: 1em 0;
}
#breadcrumbs { display: none; }
.brand {
display: block;
background: url('header.svg');
width: 226px;
height: 461px;
text-indent: -5000px;
margin-left: 70px;
margin-top: -15px;
position: absolute;
}
.bronco {
display: block;
background: url('bronco.svg');
background-repeat: no-repeat;
width: 406px;
height: 347px;
text-indent: -5000px;
position: absolute;
bottom: 0;
left: -20px;
}
.blob {
position: absolute;
top: 60px;
left: 285px;
z-index: 20;
display: block;
font-family: Courier, sans-serif;
background: url('blob.svg');
background-repeat: no-repeat;
width: 250px; height: 332px;
margin: 5px;
}
.blob a {
font-size: 14px;
color: black;
margin: 20px;
line-height: 20px;
}
.blob p {
font-size: 18px;
margin: 20px;
line-height: 29px;
}
var w = 710,
h = w,
r = w / 2,
x = d3.scale.linear().range([0, 2 * Math.PI]),
y = d3.scale.pow().exponent(1.3).domain([0, 1]).range([0, r]),
p = 15,
duration = 2000;
var div = d3.select("#vis");
var vis = div.append("svg")
.attr("width", w + p * 1.5)
.attr("height", h + p * 2)
.append("g")
.attr("transform", "translate(" + (r + p) + "," + (r + p) + ")");
var partition = d3.layout.partition()
.sort(null)
.value(function(d) { return 5.8 - d.depth; });
var arc = d3.svg.arc()
.startAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x))); })
.endAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x + d.dx))); })
.innerRadius(function(d) { return Math.max(0, d.y ? y(d.y) : d.y); })
.outerRadius(function(d) { return Math.max(0, y(d.y + d.dy)); });
d3.json("datos-color.json", function(json) {
var nodes = partition.nodes({children: json});
var path = vis.selectAll("path").data(nodes);
path.enter().append("path")
.attr("id", function(d, i) { return "path-" + i; })
.attr("d", arc)
.style("stroke-width", "0")
.style("stroke", 333)
.attr("fill-rule", "evenodd")
.style("fill", colour)
.on("click", click);
var text = vis.selectAll("text").data(nodes);
var textEnter = text.enter().append("text")
.style("fill-opacity", 1)
.style("font-family", "Courier")
.style("font-size", "10")
.style("font-weight", "bold")
.style("fill", function(d) {
return brightness(d3.rgb(colour(d))) < 9 ? "#333" : "#000";
})
.attr("text-anchor", function(d) {
return x(d.x + d.dx / 2) > Math.PI ? "end" : "start";
})
.attr("dy", "-.7em")
.attr("transform", function(d) {
var multiline = (d.name || "").split(" ").length > 1,
angle = x(d.x + d.dx / 2) * 180 / Math.PI - 90,
rotate = angle + (multiline ? -.5 : 0);
return "rotate(" + rotate + ")translate(" + (y(d.y) + p) + ")rotate(" + (angle > 90 ? -180 : 0) + ")";
})
.on("click", click);
textEnter.append("tspan")
.attr("x", 0)
.style("font-size", "11")
.text(function(d) { return d.depth ? d.name.split(" ")[0] : ""; });
textEnter.append("tspan")
.attr("x", 0)
.attr("dy", ".8em")
.style("font-size", "11")
.text(function(d) { return d.depth ? d.name.split(" ")[1] || "" : ""; });
textEnter.append("tspan")
.attr("x", 0)
.attr("dy", ".8em")
.style("font-size", "11")
.text(function(d) { return d.depth ? d.name.split(" ")[2] || "" : ""; });
textEnter.append("tspan")
.attr("x", 0)
.attr("dy", "1em")
.style("font-size", "11")
.text(function(d) { return d.depth ? d.name.split(" ")[3] || "" : ""; });
textEnter.append("tspan")
.attr("x", 0)
.attr("dy", "1em")
.style("font-size", "11")
.text(function(d) { return d.depth ? d.name.split(" ")[5] || "" : ""; });
function click(d) {
path.transition()
.duration(duration)
.attrTween("d", arcTween(d));
// Somewhat of a hack as we rely on arcTween updating the scales.
text
.style("visibility", function(e) {
return isParentOf(d, e) ? null : d3.select(this).style("visibility");
})
.transition().duration(duration)
.attrTween("text-anchor", function(d) {
return function() {
return x(d.x + d.dx / 2) > Math.PI ? "end" : "start";
};
})
.attrTween("transform", function(d) {
var multiline = (d.name || "").split(" ").length > 1;
return function() {
var angle = x(d.x + d.dx / 2) * 180 / Math.PI - 90,
rotate = angle + (multiline ? -.5 : 0);
return "rotate(" + rotate + ")translate(" + (y(d.y) + p) + ")rotate(" + (angle > 90 ? -180 : 0) + ")";
};
})
.style("fill-opacity", function(e) { return isParentOf(d, e) ? 1 : 1e-6; })
.each("end", function(e) {
d3.select(this).style("visibility", isParentOf(d, e) ? null : "hidden");
});
}
});
function isParentOf(p, c) {
if (p === c) return true;
if (p.children) {
return p.children.some(function(d) {
return isParentOf(d, c);
});
}
return false;
}
function colour(d) {
if (d.children) {
// There is a maximum of two children!
var colours = d.children.map(colour),
a = d3.hsl(colours[0]),
b = d3.hsl(colours[1]);
// L*a*b* might be better here...
return d3.hsl((a.h + b.h) / 5, a.s * 1.2, a.l / 1.2);
}
return d.colour || "#fff";
}
// Interpolate the scales!
function arcTween(d) {
var my = maxY(d),
xd = d3.interpolate(x.domain(), [d.x, d.x + d.dx]),
yd = d3.interpolate(y.domain(), [d.y, my]),
yr = d3.interpolate(y.range(), [d.y ? 20 : 0, r]);
return function(d) {
return function(t) { x.domain(xd(t)); y.domain(yd(t)).range(yr(t)); return arc(d); };
};
}
function maxY(d) {
return d.children ? Math.max.apply(Math, d.children.map(maxY)) : d.y + d.dy;
}
// http://www.w3.org/WAI/ER/WD-AERT/#color-contrast
function brightness(rgb) {
return rgb.r * .299 + rgb.g * .1 + rgb.b * .114;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment