Skip to content

Show datetime values on xAxis #21451

Answered by mjl38
mjl38 asked this question in General
Discussion options

You must be logged in to vote

I should have posted this on a somewhat more relevant site for “Apache Echarts”.
I solved the problem by doing this:

option = {
    dataset: {
        source: [
            ['Date', 'Value'],
            ['2020/12/31', 120],
            ['2021/04/01 10:00', 20],
            ['2021/04/01 21:00', 25],
            ['2021/05/06', null],
            ['2021/08/30', -10],
            ['2021/08/09', 70],
            ['2025/04/24', 110],
            ['2025/06/14', 130]
        ]
    },
    dataZoom: [
        {
            show: true,
            realtime: true,
            start: 0,
            end: 100
        },
        {
            type: 'inside',
            realtime: true,
            start…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant