Open this page in the API Guide

Legend.onDataChanged Method

Called when data changes.