show XML and JSON error handling in D3
✓ Published0🌍 Public
GGerHobbelt
Last edited Sep 9, 2012
Created on Apr 2, 2012
This example demonstrates how D3.js handles errors when loading JSON and XML data from both same-domain and cross-domain sources. It uses D3’s data-loading methods to fetch files and displays the successful results or error messages in the page’s DOM, rendering them as structured text in a report div. The code interacts directly with the browser’s network stack, showing the divergence between valid responses and rejection paths. The implementation is based on a minimal HTML page with a single reporting container and does not employ visual encoding or layout techniques beyond plain text output.
AI-generated descriptionShows/tests D3.JS error reporting behaviour for same-domain and cross-domain JSON and XML requests.