Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Drawing a discrete-time signal

It should be possible to draw a discrete-time signal using either ‘scatter’ or ‘bar’. A sample - produced by Mathematica - is shown below. The problem is that this simple drawing cannot be done (to my knowledge) with “fill: tozeroy” Does anyone have a solution?

You could use asymmetric error bars for this:

Here’s a pen demonstrating this approach:

It worked perfectly. Thank you very much.

I’m glad to hear that!
I edited the pen a little bit just as you replied to the post: The hover info for the points wasn’t ideal in the first version of the code. You might want to take a look at the updated pen in case you need the hover info.