Hi dgreenin, thank you for reaching out about this.
Currently, you can make a selection on the feature layer view and pass those selected features into the chart component.
This will not generate a new chart, but it will highlight the selected features. From there, you can use the <arcgis-charts-action-bar> component's built-in 'Filter by selection' feature to help you narrow down your chart's visualization.
Here's a quick proof of concept for this.
view.on('click', function (event) {
var screenPoint = event.screenPoint;
view.hitTest(screenPoint).then(getFeatures);
});
function getFeatures(response) {
// get the selected feature's ObjectId from the hitTest
const selectedFeatureOID = response.results[0].graphic.attributes['ObjectId'];
// set the selected feature's OID to the Charts component's selectionData
scatterplotElement.selectionData = { selectionOIDs: [selectedFeatureOID] };
}
// Use the action bar to filter by selection...
We will work on including this workflow in the tutorial, as it's an important way for users to visualize the data between the map and the chart.