Skip to content

How to align tick chart with bar chart on temporal data? #2590

Answered by jakevdp
yuntan asked this question in Q&A
Discussion options

You must be logged in to vote

One easy way to make this happen is to use ordinal encodings for the x-axis:

    x=alt.X(
        'utcyearmonthdate(x):O',
    ),

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@yuntan
Comment options

@RmStorm
Comment options

@jonmmease
Comment options

@RmStorm
Comment options

@a3agalyan
Comment options

Answer selected by yuntan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants