vbar_stack with zero data

Is it expected that using vbar_stack with zero’s in data will still leave a color artifact (glyph is not actually zero height)?

stacked graph below where zero value items still show up as a line. Regular vbar graphs do not seem to have this issue.

It is also easily reproducible by modifying the dataset in the “Stacked” example in the docs to add zeros.

https://bokeh.pydata.org/en/latest/docs/user_guide/categorical.html

The underlying HTML canvas will always draw a line if requested (e.g. the outline around a text). If you want to not have the rect outline you can set the line color to None.

Thanks,

Bryan

···

On Jun 28, 2018, at 21:11, [email protected] wrote:

Is it expected that using vbar_stack with zero’s in data will still leave a color artifact (glyph is not actually zero height)?

stacked graph below where zero value items still show up as a line. Regular vbar graphs do not seem to have this issue.

It is also easily reproducible by modifying the dataset in the “Stacked” example in the docs to add zeros.

https://bokeh.pydata.org/en/latest/docs/user_guide/categorical.html

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/f9dd4a81-31ca-4eb0-9ec5-8201deb9f2ef%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

As suggested, setting line_color=None in vbar_stack solves the issue.

1 Like