May 27, 2024 8:08 AM
Apr 02, 2025 10:46 PM

Chart.js

JavaScript charting library. Supported in Obsidian with Charts plugin

· Docs · #note/sink ·

Dates

To get time axis without parsing use Date.parse(<date>) to convert dates into timestamps
and then disable parse in the axis:

	data: {},
	type: {},
	options: {
		color: '#B0B0B0',
		scales: {
			x:
				{
					type: 'time',
					time: {
						unit: 'day',
						parser: false,
						displayFormats: {day: 'ddd DD MMM'},
					},
				},
		},
	}
	

Sink

Video guide