I am trying to build a map using Carto Builder that compares the average price of single family housing and multi-family housing by neighborhood. The data are offset centroids for each neighborhood, sized by the average cost of each type of housing. It is important that each data set use the same class breaks so that a visual comparison is possible. The data sets have different min/max values, so I manually set the class breaks for each using CartoCSS. However, the legend does not reflect the class breaks I set, and returns 'No data available' in the legend box. How do I fix this?
Here is the CartoCSS I am using:
#layer {
marker-width: ramp([avg_sf], (6,12,18,24,30),
(300000,400000,600000,800000,1000000));
marker-fill: #e19c0c;
marker-fill-opacity: 0.79;
marker-allow-overlap: true;
marker-line-width: 1;
marker-line-color: #FFF;
marker-line-opacity: 1;
}
And a screenshot showing the empty legend.