stackedbar can not display properly with "0"

Hi guys,

I created a stackedbar with “0”, and assume that piece of bar can not be rendered. but, it did. is this a bug? if it is not, any suggestions if I try to hide the parts with “0”

thanks,

2018-12-10_13-38-33.png

Hi,

Filling a zero height bar is invisible. But stroking the outline of one is not. What you are seeing is the outline. That is simply how the browser canvas implementation works. Best suggestion for now is to set the line color for the bar to None to suppress stroking the outline. You might open an issue to discuss possibly doing this automatically for zero height/width bars if you are inclined.

Thanks,

Bryan

···

On Dec 10, 2018, at 14:43, [email protected] wrote:

Hi guys,

I created a stackedbar with “0”, and assume that piece of bar can not be rendered. but, it did. is this a bug? if it is not, any suggestions if I try to hide the parts with “0”

thanks,

<2018-12-10_13-38-33.png>

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/97e1e70a-376b-4cbe-9446-887c7ddd4a7c%40continuum.io.

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

<2018-12-10_13-38-33.png>

thanks a lot

···

On Monday, December 10, 2018 at 3:03:11 PM UTC-7, Bryan Van de ven wrote:

Hi,

Filling a zero height bar is invisible. But stroking the outline of one is not. What you are seeing is the outline. That is simply how the browser canvas implementation works. Best suggestion for now is to set the line color for the bar to None to suppress stroking the outline. You might open an issue to discuss possibly doing this automatically for zero height/width bars if you are inclined.

Thanks,

Bryan

On Dec 10, 2018, at 14:43, [email protected] wrote:

Hi guys,

I created a stackedbar with “0”, and assume that piece of bar can not be rendered. but, it did. is this a bug? if it is not, any suggestions if I try to hide the parts with “0”

thanks,

<2018-12-10_13-38-33.png>

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/97e1e70a-376b-4cbe-9446-887c7ddd4a7c%40continuum.io.

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

<2018-12-10_13-38-33.png>