Home > OS >  Use a plotly dropdown to select 'Time Column' and plot 'Column 2' vs 'Colum
Use a plotly dropdown to select 'Time Column' and plot 'Column 2' vs 'Colum

Time:03-22

Good evening,

I need to know if it is possible to use a dropdown button with plotly library and do what i mentioned in the title.

I generated these data in order to show you how my dataframe is :

 ---------- ---------- ----------- 
|   Time   | Column1  |  Column2  |
 ---------- ---------- ----------- 
| 06:48:37 | -0,61447 | 0,0050662 |
| 06:48:37 | -0,30723 | 0,0045917 |
| 06:48:37 | 0        | 0,0043276 |
| 06:48:37 | 0,30723  | 0,0041332 |
| 06:48:37 | 0,61447  | 0,003965  |
| 06:48:37 | 0,9217   | 0,0038135 |
| 06:48:37 | 1,2289   | 0,0036676 |
| 06:48:37 | 1,5362   | 0,0035346 |
| 06:48:37 | 1,8434   | 0,0034031 |
| 06:48:37 | 2,1506   | 0,0032813 |
| 06:59:37 | -0,61739 | 0,0058201 |
| 06:59:37 | -0,3087  | 0,0053155 |
| 06:59:37 | 0        | 0,0050203 |
| 06:59:37 | 0,3087   | 0,0047872 |
| 06:59:37 | 0,61739  | 0,0045921 |
| 06:59:37 | 0,92609  | 0,0044152 |
| 06:59:37 | 1,2348   | 0,0042553 |
| 06:59:37 | 1,5435   | 0,004102  |
| 06:59:37 | 1,8522   | 0,0039532 |
| 06:59:37 | 2,1609   | 0,0038114 |
| 07:14:37 | -0,61799 | 0,0069837 |
| 07:14:37 | -0,309   | 0,0064459 |
| 07:14:37 | 0        | 0,0061361 |
| 07:14:37 | 0,309    | 0,0058983 |
| 07:14:37 | 0,61799  | 0,0056855 |
| 07:14:37 | 0,92699  | 0,0054978 |
| 07:14:37 | 1,236    | 0,0053299 |
| 07:14:37 | 1,545    | 0,0051582 |
| 07:14:37 | 1,854    | 0,0049979 |
| 07:14:37 | 2,163    | 0,0048426 |
 ---------- ---------- ----------- 

Here is the link for the subject : enter image description here

  • Related