            type: 'bar'
                    }];
                    var barLayout = {
                        title: 'Class Distribution',
                        xaxis: { title: 'Classes' },
                        yaxis: { title: 'Number of Annotations' }
                    };
                    Plotly.newPlot('class-distribution', barData, barLayout);
                }

                if (data.annotations_per_image.length === 0) {
                    document.getElementById('annotations-per-image').in