☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Factor_cmap - are only string factors supported?

Community Support
jcarson
jcarson

I am trying to create a multi_line plot where the colors change based on a value of an id column in my data source.

My data source looked like:

ColumnDataSource(      {`
       "xs":  # list of list of x's
       "ys": # list of list of y's
       "group_id": # list of ints - one int per line 
      })

And I called factor_cmap with

  factor_cmap("group_id",
               palette,
               group_ids,)

This failed until I changed group_ids to group_ids = [str(x) for x in ids]

⌁   Link to post

End of archived discussion · Replies are disabled