1

I hope the title is not too confusing. I have a large Data file with many columns, they all have titles and the data is loaded into pandas, the x-axis should be the date.

Now I want to create an interactive plot with the data, so you can see all the checkboxes and can select, which data should be shown in the plot.

I have found that maybe bokeh is the best way to do it, but I am a bit stuck. I habe already created the checkboxes (checkbox_group), but I dont know how to translate that into a plot.

Obvously I dont want to create around 300 boxes and plots manually, so I am looking for a solution, that takes all the heades and then plots the data from that column if the box is checked.

Schlumpi
  • 21
  • 2
  • I am happy to help, but it is allways the best to show with a code snipped what you have tried so far. If I understand your goal correctly, [this](https://stackoverflow.com/questions/69462392/hide-several-lines-using-customjs-in-python-bokeh/69464359#69464359) could be close to your wanted plot. You only have to have the x-axis type to `datetime`. Let me know if I am right. – mosc9575 Oct 20 '21 at 15:45
  • Thank you so much, that was exactly what i was looking for. The only thing that I didn't find out yet, is how to make the default, that the boxes are not checked. So that No or maybe only one plot is showing after executing the code. Do you have any ideas for that? – Schlumpi Oct 21 '21 at 09:48
  • 1
    Does this answer your question? [Hide several lines using CustomJS in Python Bokeh](https://stackoverflow.com/questions/69462392/hide-several-lines-using-customjs-in-python-bokeh) – mosc9575 Oct 21 '21 at 10:22
  • I don't have enough "experience" I think :D – Schlumpi Oct 21 '21 at 12:43
  • If you have, you may come back. – mosc9575 Oct 21 '21 at 13:01

0 Answers0