Building custom charts
Data analysis methods
1. Aggregates: single statistics
// Count all residential buildings
const residentialCount = await felt.getAggregates({
layerId: "buildings",
filters: ["type", "eq", "residential"]
});
// returns { count: 427 }
// Calculate average home value in a specific neighborhood
const avgHomeValue = await felt.getAggregates({
layerId: "buildings",
boundary: [-122.43, 47.60, -122.33, 47.62], // neighborhood boundary
aggregation: {
method: "avg",
attribute: "assessed_value"
}
});
// returns { avg: 652850.32 }2. Categories: group by values
3. Histograms: group by numeric ranges
Working with filters
Advanced filtering examples
Interactive visualization example
Last updated
Was this helpful?