Obsidian Charts plugin dataviewjs help

Oh thank you! I fixed that and I fixed the const “chartDate” → “chartData” and now everything is working.

dv.span("**Squat Log**")

const pages = dv.pages('"Journal/1 Daily"').sort(p => p.file.name)
const dates = pages.map(p => p.file.name)
const squats = pages.map(p => p.squat).values

const chartData = {
	type: 'line',
	data: {
		labels: dates,
		datasets: [{
			label: 'Squat (lb)',
			data: squats,
			backgroundColor: [
				'rgba(53, 252, 167, 1)'
			],
			borderColor: [
				'rgba(138, 102, 204, 0.8)'
			],
			borderWidth: 1.5,
			spanGaps: true,
		}],
	},
};

window.renderChart(chartData, this.container)