如何在 Vis.js-timeline 上使用 BC / BCE Years 制作时间线
How to do a timeline with BC / BCE Years on Vis.js-timeline
我一直在尝试用 vis.js-timeline 做一个时间线,时间线是公元前或 0 之前。
试过 start: '-0050-01-1'
和 start: '-50-01-1'
但它们没有显示。
找不到关于此的文档。
所以读取Expanded Years from ECMAScript 2022 Language Specification的对象发现:
In the simplified ECMAScript format, such an expanded year
representation shall have 6 digits and is always prefixed with a + or - sign.
已尝试 '-000460-04-20'
并显示为 -460 (BC)。
我一直在尝试用 vis.js-timeline 做一个时间线,时间线是公元前或 0 之前。
试过 start: '-0050-01-1'
和 start: '-50-01-1'
但它们没有显示。
找不到关于此的文档。
所以读取Expanded Years from ECMAScript 2022 Language Specification的对象发现:
In the simplified ECMAScript format, such an expanded year representation shall have 6 digits and is always prefixed with a + or - sign.
已尝试 '-000460-04-20'
并显示为 -460 (BC)。