1๐
โ
I typically handle this by inserting null
values wherever there should be a gap (as you mentioned). However, it looks like the segments option (one of Chart.jsโs scriptable options) should be able to do what you want. See here for an example.
Source:stackexchange.com