I have generated a 'bubble' map in Carto:
Custom CSS:
#layer {
[capacity >= 70000]
{marker-width: 90;
}
[capacity >= 60000][capacity < 70000]
{marker-width: 80;}
[capacity >= 50000][capacity < 60000]
{marker-width: 70;}
[capacity >= 40000][capacity < 50000]
{marker-width: 60;}
[capacity >= 30000][capacity < 40000]
{marker-width: 50;}
[capacity >= 20000][capacity < 30000]
{marker-width: 40;}
[capacity <= 20000]
{marker-width: 30;}
marker-fill: teal;
marker-fill-opacity: 0.5;
marker-line-color: #FFF;
marker-line-width: 1;
marker-line-opacity: 0.8;
marker-placement: point;
marker-type: ellipse;
marker-allow-overlap: true;
}
However there is no option to create a bubble style legend. I have looked at several examples to use custom html to implement this, however none seem to generate what i am after.
The question - CartoDB choropleth + bubble visualization with two independent value ranges in legend seems to show what I am after but the code supplied does not seem to behave the same my end
<div class='cartodb-legend bubble'>
<ul>
<li>
1.46
</li>
<li class="graph" style="background: linear-gradient(to right,rgb(253, 141, 60), rgb(252, 78, 42), rgb(177, 0, 38));">
<div class="bubbles"></div>
</li>
<li>
18.5
</li>
</ul>
</div>
I don't expect this to suddenly work with my data but I don't understand why I return:
Instead of:
Has the functionality of 'cartodb-legend bubble' changed at all?