 Annotation Status' };
                    Plotly.newPlot('image-stats', pieData, pieLayout);
                }

                if (Object.keys(data.class_distribution).length === 0) {
                    document.getElementById('class-distribution').innerHTML = '<p>No annotations in this project.</p>';
                } else {
                    var barData = [{
                        x: Object.keys(data.class_distribution),
                        y: Object.values(data.class_distribution),
            