var { Charts } = customJS;
Charts.createBarChart.call(this, '#gfg_dsa_problem');
const pages = dv.pages('#gfg_dsa_problem');
const testNames = pages.map(p => p.file.name).values; 
const time_complexity = pages.map(p => p.time_complexity).values;
 
const chartData2 = { 
	type: 'bar', 
	data: { 
		labels: testNames, 
		datasets: [{ 
			label: 'Difficulty Level (Points)', 
			data: time_complexity, 
			backgroundColor: [ 'rgba(255, 99, 132, 0.2)' ], 
			borderColor: [ 'rgba(255, 99, 132, 1)' ], 
			borderWidth: 1, 
			}] 
		} 
	}; 
window.renderChart(chartData2, this.container);