I answered my own question. Inside the column data source, you can append the fillna("") function which allows you to change NaN to a zero-length string. You can see I still have a lot to learn!
source = ColumnDataSource(
data = dict(
unit_order = leases[‘unit_order’],
floor_number = leases[‘floor_number’],
unit_f = leases[‘unit_f’].fillna(""),
display_value = leases[‘display_value’].fillna("")
On Tuesday, August 5, 2014 12:22:24 PM UTC-7, Armen Alexanian wrote:
On my graph there are strings which print inside boxes in a rectangle. Sometimes the strings are too long and other times the value is null (which show up as NaN) and I’d like to hide (not print) those so they don’t show up on the graph. Is there a way to avoid printing certain strings? I can’t change the color because since the graph has multiple colored boxes, there’re no backgrounds against which white strings would appear hidden.
Thanks very much!