glue-viz / glue-plotly

Experimental plot.ly plugin for glue
BSD 3-Clause "New" or "Revised" License
2 stars 8 forks source link

Allow gaps between histogram bars and fix axis labels #72

Closed Carifio24 closed 2 months ago

Carifio24 commented 2 months ago

This PR adds the ability for the histogram viewer to display adjustable-width gaps between its bars. Whether to use gaps is determined by the viewer state's gaps attribute, while the gap fraction (ranging from 0 to 1) is set by gap_fraction. This is implemented via the Plotly figure's bargap and is thus a viewer-level property.

This PR also fixes a small bug where the axis title data was overwritten, rather than updated, when changing the label.