☰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

How to plot multi charts with AjaxDataSource

Community Supportcustomjs
Henry
Henry

I want to draw multi charts with one ajax call.
the ajax return a list of dictionary like this:

list(dict(
     x= series["x"].tolist(),
     y=series["y"].tolist(),
     z=series["z"].tolist(),
     date_time=series["date_time"].tolist()
 ))

I want to draw the multi charts by the return data.
each dictionary item in the list for one chart.
not sure how to use the AjaxDataSource.
I reference the

but not exactly the same things.

⌁   Link to post
Bryan
Bryan

There is not any built-in / “official” way to do this, AjaxDataSource is meant to update a single columnar data source from an endpoint.

You could potentially slightly abuse the AjaxDataSource.adapter hook, by passing in other CDS objects to the args parameter of the CustomJS, and then updating those manually in the hook code. But note you would have to handle and rollover, etc. yourself, to prevent those data sources from growing without bound.

⌁   Link to post

End of archived discussion · Replies are disabled