Skip to content

Help: cumulative sum line vs areaY mark? #190

Closed Answered by jheer
fundef1 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the areaY mark is sensitive to the data sort order. One option is to query your data with a desired order. You should be able to indicate this via a mark order option ("order": "k"). Note that the areaY mark will already sort along the x-axis for you.

Sorting won't help with the sparse data issue, though. One option is to impute missing values for each timestamp you want to sample, though I don't think Observable Plot provides any support for this at the plotting level. You could do this in DuckDB using CTEs and appropriate joins, but it's a bit involved...

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@fundef1
Comment options

@jheer
Comment options

Comment options

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

@jheer
Comment options

@fundef1
Comment options

@jheer
Comment options

Answer selected by fundef1
@fundef1
Comment options

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