GraphProvider and Graph support error handling to gracefully manage failures.
GraphProvider error handling
Use theonError prop to track errors in data processing, configuration, or provider setup:
GraphProvider re-throws errors (allowing your app’s error boundary to handle them). Provide a fallbackComponent to show custom UI instead:
Graph error handling
Graph also accepts onError and errorFallback props for handling chart rendering errors.
Unlike GraphProvider, Graph always shows a fallback UI when rendering fails. If you don’t provide a custom errorFallback, it displays a default “Unable to render chart” message.