Custom timestamp intervals
TIP
For more information, see: Timestamps and scale
Jan 1, 1970
Code
vue
<script setup>
function () {
const = new ().();
const = new ().();
return `Q${.( / 3) + 1} ${ === 0 ? : ''}`;
}
</script>
<template>
<
="[{: '1'}, {: '2'}]"
="new (`${new ().()}-01-01`).()"
="new (`${new ().() + 1}-01-01`).()"
="[
{ : 'days', : [1, 2] },
{ : 'months', : [1, 3] },
]"
="60"
>
< #timestamp="{ , }">
<template v-if=".unit === 'months' && .step === 3">
{{ () }}
</template>
</>
</Timeline>
</template>