Closed elenatorro closed 5 years ago
What is happening?
There's an issue with this example.
What should happen?
Last example, instead of:
function updateWidgets() { $categoryWidget.categories = viz.variables.cities.value .map(feature => ({ name: feature.name, value: feature.pop_max, })) .sort((a, b) => b.value - a.value); };
It should be
function updateWidgets() { $categoryWidget.categories = viz.variables.cities.value .map(feature => ({ name: feature.properties.name, value: feature.properties.pop_max, })) .sort((a, b) => b.value - a.value); };
Good catch @elenatorro. This was a change in VL API we made in v0.10, grouping the properties, that wasn't synchronized. I would add this example to the 'VL checklist for new releases'
What is happening?
There's an issue with this example.
What should happen?
Last example, instead of:
It should be